1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|iam] add test for AWS[:iam].get_user_policy

This commit is contained in:
Benton Roberts 2012-06-12 11:32:29 -04:00
parent 0edca558f9
commit 907f294e8f

View file

@ -20,6 +20,16 @@ Shindo.tests('AWS::IAM | user policy requests', ['aws']) do
Fog::AWS[:iam].list_user_policies('fog_user_policy_tests').body
end
@user_policy_format = {
'UserName' => String,
'PolicyName' => String,
'PolicyDocument' => Hash,
}
tests("#get_user_policy('fog_user_policy_tests', 'fog_policy'").formats(@user_policy_format) do
Fog::AWS[:iam].get_user_policy('fog_policy', 'fog_user_policy_tests').body['Policy']
end
tests("#delete_user_policy('fog_user_policy_tests', 'fog_policy')").formats(AWS::IAM::Formats::BASIC) do
Fog::AWS[:iam].delete_user_policy('fog_user_policy_tests', 'fog_policy').body
end