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-0.7.12 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.7.11-java spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.7.11 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.7.10-java spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.7.10 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.7.10.pre.core.pre.search spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.7.9.pre.core.pre.search spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.7.8 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.7.8-java spec/factories/metasploit/credential/realms.rb