Sha256: c2b366ac0591af2382b320ef4379a62a42a917d8b9dc8e7b488bbc5248c1fe41

Contents?: true

Size: 795 Bytes

Versions: 67

Compression:

Stored size: 795 Bytes

Contents

FactoryGirl.define do
  factory :metasploit_credential_origin_service,
          class: Metasploit::Credential::Origin::Service do
    ignore do
      module_type { generate :metasploit_credential_origin_service_module_type }
      reference_name { generate :metasploit_credential_origin_service_reference_name }
    end

    association :service, factory: :mdm_service

    module_full_name { "#{module_type}/#{reference_name}" }
  end

  metasploit_credential_origin_service_module_types = [
      'auxiliary',
      'exploit'
  ]
  sequence :metasploit_credential_origin_service_module_type, metasploit_credential_origin_service_module_types.cycle

  sequence :metasploit_credential_origin_service_reference_name do |n|
    "metasploit/credential/origin/service/reference/name#{n}"
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
metasploit-credential-0.14.8 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.14.7 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.14.6 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.14.5 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.14.4 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.14.3 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.14.2 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.14.0 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.19 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.18 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.17 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.16 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.15 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.12 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.11 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.10 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.9 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.8 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.7 spec/factories/metasploit/credential/origin/services.rb
metasploit-credential-0.13.6 spec/factories/metasploit/credential/origin/services.rb