Sha256: a868a55672165904806ed9f32da3118c39efa6eae2d2c13b38bf9b5a375dac66

Contents?: true

Size: 438 Bytes

Versions: 32

Compression:

Stored size: 438 Bytes

Contents

FactoryBot.define do
  factory :mdm_vuln, :class => Mdm::Vuln do
    name { generate :mdm_vuln_name }

    trait :host do
      association :host, :factory => :mdm_host
    end

    trait :service do
      association :service, :factory => :mdm_service
    end

    factory :mdm_host_vuln, :traits => [:host]
    factory :mdm_service_vuln, :traits => [:service]
  end

  sequence :mdm_vuln_name do |n|
    "Mdm::Vuln#name #{n}"
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
wg-metasploit_data_models-4.1.4.02 spec/factories/mdm/vulns.rb
metasploit_data_models-6.0.5 spec/factories/mdm/vulns.rb
metasploit_data_models-6.0.4 spec/factories/mdm/vulns.rb
metasploit_data_models-6.0.3 spec/factories/mdm/vulns.rb
metasploit_data_models-6.0.2 spec/factories/mdm/vulns.rb
metasploit_data_models-6.0.1 spec/factories/mdm/vulns.rb
metasploit_data_models-6.0.0 spec/factories/mdm/vulns.rb
metasploit_data_models-5.0.6 spec/factories/mdm/vulns.rb
metasploit_data_models-5.0.5 spec/factories/mdm/vulns.rb
metasploit_data_models-5.0.4 spec/factories/mdm/vulns.rb
metasploit_data_models-5.0.3 spec/factories/mdm/vulns.rb
metasploit_data_models-5.0.2 spec/factories/mdm/vulns.rb
metasploit_data_models-5.0.1 spec/factories/mdm/vulns.rb
metasploit_data_models-5.0.0 spec/factories/mdm/vulns.rb
metasploit_data_models-4.1.4 spec/factories/mdm/vulns.rb
metasploit_data_models-4.1.3 spec/factories/mdm/vulns.rb
metasploit_data_models-4.1.2 spec/factories/mdm/vulns.rb
metasploit_data_models-4.1.1 spec/factories/mdm/vulns.rb
metasploit_data_models-4.1.0 spec/factories/mdm/vulns.rb
metasploit_data_models-4.0.2 spec/factories/mdm/vulns.rb