Sha256: de2c90a5f09ef8fc636b0ae8f88fa446c54202647dd79c6095d5d5da027eebdb
Contents?: true
Size: 919 Bytes
Versions: 2
Compression:
Stored size: 919 Bytes
Contents
FactoryBot.define do sequence(:session_id) factory :metasploit_data_models_module_run, class: MetasploitDataModels::ModuleRun do association :user, factory: :mdm_user trait :failed do status MetasploitDataModels::ModuleRun::FAIL end trait :exploited do status MetasploitDataModels::ModuleRun::SUCCEED end trait :error do status MetasploitDataModels::ModuleRun::ERROR end attempted_at Time.now session_id 1 port { generate :port } proto "tcp" fail_detail { generate :module_run_fail_detail } status MetasploitDataModels::ModuleRun::SUCCEED username "joefoo" module_fullname { generate :module_run_module_fullname } end sequence :module_run_module_fullname do |n| "exploit/windows/happy-stack-smasher-#{n}" end sequence :module_run_fail_detail do |n| "MetasploitDataModels::ModuleRun#fail_detail #{n}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metasploit_data_models-3.0.1 | spec/factories/module_runs.rb |
metasploit_data_models-3.0.0 | spec/factories/module_runs.rb |