2010-11-17 13:29:58 -05:00
|
|
|
Shindo.tests('AWS::IAM | group requests', ['aws']) do
|
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
|
|
|
@group_format = {
|
|
|
|
'Group' => {
|
|
|
|
'Arn' => String,
|
|
|
|
'GroupId' => String,
|
|
|
|
'GroupName' => String,
|
|
|
|
'Path' => String
|
|
|
|
},
|
|
|
|
'RequestId' => String
|
|
|
|
}
|
|
|
|
|
|
|
|
tests("#create_group('fog_group')").formats(@group_format) do
|
2011-09-15 09:01:03 -04:00
|
|
|
Fog::AWS[:iam].create_group('fog_group').body
|
2010-11-17 13:29:58 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
@groups_format = {
|
|
|
|
'Groups' => [{
|
|
|
|
'Arn' => String,
|
|
|
|
'GroupId' => String,
|
|
|
|
'GroupName' => String,
|
|
|
|
'Path' => String
|
|
|
|
}],
|
|
|
|
'IsTruncated' => Fog::Boolean,
|
|
|
|
'RequestId' => String
|
|
|
|
}
|
|
|
|
|
|
|
|
tests("#list_groups").formats(@groups_format) do
|
2011-09-15 09:01:03 -04:00
|
|
|
Fog::AWS[:iam].list_groups.body
|
2010-11-17 13:29:58 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#delete_group('fog_group')").formats(AWS::IAM::Formats::BASIC) do
|
2011-09-15 09:01:03 -04:00
|
|
|
Fog::AWS[:iam].delete_group('fog_group').body
|
2010-11-17 13:29:58 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('failure') do
|
|
|
|
test('failing conditions')
|
|
|
|
end
|
|
|
|
|
2012-02-06 20:55:44 -05:00
|
|
|
end
|