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_tests.rb
2015-01-02 09:42:20 -08:00

34 lines
1.2 KiB
Ruby

Shindo.tests('AWS::IAM | account requests', ['aws']) do
tests('success') do
@get_account_summary_format = {
'Summary' => {
'AccessKeysPerUserQuota' => Integer,
'AccountMFAEnabled' => Integer,
'AssumeRolePolicySizeQuota' => Fog::Nullable::Integer,
'GroupPolicySizeQuota' => Integer,
'Groups' => Integer,
'GroupsPerUserQuota' => Integer,
'GroupsQuota' => Integer,
'InstanceProfiles' => Fog::Nullable::Integer,
'InstanceProfilesQuota' => Fog::Nullable::Integer,
'MFADevices' => Integer,
'MFADevicesInUse' => Integer,
'Providers' => Fog::Nullable::Integer,
'RolePolicySizeQuota' => Fog::Nullable::Integer,
'Roles' => Fog::Nullable::Integer,
'RolesQuota' => Fog::Nullable::Integer,
'ServerCertificates' => Integer,
'ServerCertificatesQuota' => Integer,
'SigningCertificatesPerUserQuota' => Integer,
'UserPolicySizeQuota' => Integer,
'Users' => Integer,
'UsersQuota' => Integer,
},
'RequestId' => String,
}
tests('#get_account_summary').formats(@get_account_summary_format) do
Fog::AWS[:iam].get_account_summary.body
end
end
end