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/mfa_tests.rb

24 lines
499 B
Ruby
Raw Normal View History

2015-01-02 12:34:40 -05:00
Shindo.tests('AWS::IAM | mfa requests', ['aws']) do
tests('success') do
@mfa_devices_format = {
'MFADevices' => [{
'EnableDate' => Time,
'SerialNumber' => String,
'UserName' => String
}],
'IsTruncated' => Fog::Boolean,
'RequestId' => String
}
tests('#list_mfa_devices').formats(@mfa_devices_format) do
Fog::AWS[:iam].list_mfa_devices.body
end
end
tests('failure') do
test('failing conditions')
end
end