Sha256: c580ed6090490a0b474c35a5ab842b3e47309a9e6306f540b4877738bb34d5bd
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
Shindo.tests('AWS::IAM | user requests', ['aws']) do begin Fog::AWS[:iam].delete_group('fog_user_tests') rescue Fog::AWS::IAM::NotFound end begin Fog::AWS[:iam].delete_user('fog_user').body rescue Fog::AWS::IAM::NotFound end Fog::AWS[:iam].create_group('fog_user_tests') tests("#create_user('fog_user')").data_matches_schema(AWS::IAM::Formats::CREATE_USER) do Fog::AWS[:iam].create_user('fog_user').body end tests("#list_users").data_matches_schema(AWS::IAM::Formats::LIST_USER) do Fog::AWS[:iam].list_users.body end tests("#get_user('fog_user')").data_matches_schema(AWS::IAM::Formats::GET_USER) do Fog::AWS[:iam].get_user('fog_user').body end tests("#get_user").data_matches_schema(AWS::IAM::Formats::GET_CURRENT_USER) do Fog::AWS[:iam].get_user.body end tests("#add_user_to_group('fog_user_tests', 'fog_user')").data_matches_schema(AWS::IAM::Formats::BASIC) do Fog::AWS[:iam].add_user_to_group('fog_user_tests', 'fog_user').body end tests("#list_groups_for_user('fog_user')").data_matches_schema(AWS::IAM::Formats::GROUPS) do Fog::AWS[:iam].list_groups_for_user('fog_user').body end tests("#remove_user_from_group('fog_user_tests', 'fog_user')").data_matches_schema(AWS::IAM::Formats::BASIC) do Fog::AWS[:iam].remove_user_from_group('fog_user_tests', 'fog_user').body end tests("#delete_user('fog_user')").data_matches_schema(AWS::IAM::Formats::BASIC) do Fog::AWS[:iam].delete_user('fog_user').body end Fog::AWS[:iam].delete_group('fog_user_tests') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-aws-0.3.0 | tests/requests/iam/user_tests.rb |