Sha256: 4cbde5072c79ea5aa8c15da26536fe5166bc85659456b9d268ba7618e2afdee2

Contents?: true

Size: 1.21 KB

Versions: 67

Compression:

Stored size: 1.21 KB

Contents

Shindo.tests('AWS::IAM | account policy requests', ['aws']) do

  tests('success') do
    tests("#update_account_password_policy(minimum_password_length, max_password_age, password_reuse_prevention,require_symbols,require_numbers,require_uppercase_characters, require_lowercase_characters,allow_users_to_change_password, hard_expiry, expire_passwords)").formats(AWS::IAM::Formats::BASIC) do
      minimum_password_length, password_reuse_prevention, max_password_age = 5
      require_symbols, require_numbers, require_uppercase_characters, require_lowercase_characters, allow_users_to_change_password, hard_expiry, expire_passwords = false
   
      Fog::AWS[:iam].update_account_password_policy(minimum_password_length, max_password_age, password_reuse_prevention,require_symbols,require_numbers,require_uppercase_characters, require_lowercase_characters,allow_users_to_change_password, hard_expiry, expire_passwords).body
    end

    tests("#get_account_password_policy()") do
      Fog::AWS[:iam].get_account_password_policy().body['AccountPasswordPolicy']
    end

    tests("#delete_account_password_policy()").formats(AWS::IAM::Formats::BASIC) do
  
      Fog::AWS[:iam].delete_account_password_policy().body
    end    
  end
end

Version data entries

67 entries across 65 versions & 5 rubygems

Version Path
fog-aws-3.12.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.11.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.10.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.9.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.8.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.7.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.6.7 tests/requests/iam/account_policy_tests.rb
fog-aws-3.6.6 tests/requests/iam/account_policy_tests.rb
fog-aws-3.6.5 tests/requests/iam/account_policy_tests.rb
fog-aws-3.6.4 tests/requests/iam/account_policy_tests.rb
fog-aws-3.6.3 tests/requests/iam/account_policy_tests.rb
fog-aws-3.6.2 tests/requests/iam/account_policy_tests.rb
fog-aws-3.5.2 tests/requests/iam/account_policy_tests.rb
fog-aws-3.5.1 tests/requests/iam/account_policy_tests.rb
fog-aws-3.5.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.4.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.3.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.2.0 tests/requests/iam/account_policy_tests.rb
fog-aws-3.1.0 tests/requests/iam/account_policy_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/tests/requests/iam/account_policy_tests.rb