mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
23 lines
499 B
Ruby
23 lines
499 B
Ruby
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
|