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.14.6 spec/factories/metasploit/credential/realms.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0c spec/factories/metasploit/credential/realms.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0b spec/factories/metasploit/credential/realms.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.14.5 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.14.4 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.14.3 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.14.2 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.14.1 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.14.0 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.19 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.18 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.17 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.16 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.15 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.12 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.11 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.10 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.9 spec/factories/metasploit/credential/realms.rb
metasploit-credential-0.13.8 spec/factories/metasploit/credential/realms.rb