1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/requests/iam/account_policy_tests.rb
2015-01-02 09:42:20 -08:00

20 lines
1.2 KiB
Ruby

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