Sha256: b8955a96d58c0d98bbd9c81fefadc88fd227ccf3f03e81987e999f8ddffd6243

Contents?: true

Size: 1.62 KB

Versions: 89

Compression:

Stored size: 1.62 KB

Contents

FactoryGirl.define do

  factory :metasploit_credential_realm,
          class: Metasploit::Credential::Realm do
    key { generate :metasploit_credential_realm_key }
    value { generate :metasploit_credential_realm_value }

    factory :metasploit_credential_active_directory_domain do
      key { Metasploit::Model::Realm::Key::ACTIVE_DIRECTORY_DOMAIN }
      value { generate :metasploit_credential_active_directory_domain_value }
    end

    factory :metasploit_credential_db2_database do
      key { Metasploit::Model::Realm::Key::DB2_DATABASE }
      value { generate :metasploit_credential_db2_database_value }
    end

    factory :metasploit_credential_oracle_system_identifier do
      key { Metasploit::Model::Realm::Key::ORACLE_SYSTEM_IDENTIFIER }
      value { generate :metasploit_credential_oracle_system_identifier_value }
    end

    factory :metasploit_credential_postgresql_database do
      key { Metasploit::Model::Realm::Key::POSTGRESQL_DATABASE }
      value { generate :metasploit_credential_postgresql_database_value }
    end
  end

  sequence :metasploit_credential_active_directory_domain_value do |n|
    "DOMAIN#{n}"
  end

  sequence :metasploit_credential_db2_database_value do |n|
    "db2_database#{n}"
  end

  sequence :metasploit_credential_oracle_system_identifier_value do |n|
    "oracle_system_identifier#{n}"
  end

  sequence :metasploit_credential_postgresql_database_value do |n|
    "postgressql_database#{n}"
  end

  sequence :metasploit_credential_realm_key, Metasploit::Model::Realm::Key::ALL.cycle

  sequence :metasploit_credential_realm_value do |n|
    "metasploit_credential_realm_value#{n}"
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
metasploit-credential-2.0.14 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.13 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.12 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.11 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.10 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.9 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.8 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.7 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.6 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.5 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.4 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.3 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.2 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.1 spec/factories/metasploit/credential/realms.rb
metasploit-credential-2.0.0 spec/factories/metasploit/credential/realms.rb
metasploit-credential-1.1.0 spec/factories/metasploit/credential/realms.rb
metasploit-credential-1.0.1 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.14.8 spec/factories/metasploit/credential/realms.rb
metasploit-credential-1.0.0 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.14.7 spec/factories/metasploit/credential/realms.rb