tests/aws/requests/iam/user_policy_tests.rb in fog-0.11.0 vs tests/aws/requests/iam/user_policy_tests.rb in fog-1.0.0
- old
+ new
@@ -1,42 +1,42 @@
Shindo.tests('AWS::IAM | user policy requests', ['aws']) do
unless Fog.mocking?
- AWS[:iam].create_user('fog_user_policy_tests')
+ Fog::AWS[:iam].create_user('fog_user_policy_tests')
end
tests('success') do
@policy = {"Statement" => [{"Effect" => "Allow", "Action" => "*", "Resource" => "*"}]}
tests("#put_user_policy('fog_user_policy_tests', 'fog_policy', #{@policy.inspect})").formats(AWS::IAM::Formats::BASIC) do
pending if Fog.mocking?
- AWS[:iam].put_user_policy('fog_user_policy_tests', 'fog_policy', @policy).body
+ Fog::AWS[:iam].put_user_policy('fog_user_policy_tests', 'fog_policy', @policy).body
end
@user_policies_format = {
'IsTruncated' => Fog::Boolean,
'PolicyNames' => [String],
'RequestId' => String
}
tests("list_user_policies('fog_user_policy_tests')").formats(@user_policies_format) do
pending if Fog.mocking?
- AWS[:iam].list_user_policies('fog_user_policy_tests').body
+ Fog::AWS[:iam].list_user_policies('fog_user_policy_tests').body
end
tests("#delete_user_policy('fog_user_policy_tests', 'fog_policy')").formats(AWS::IAM::Formats::BASIC) do
pending if Fog.mocking?
- AWS[:iam].delete_user_policy('fog_user_policy_tests', 'fog_policy').body
+ Fog::AWS[:iam].delete_user_policy('fog_user_policy_tests', 'fog_policy').body
end
end
tests('failure') do
test('failing conditions')
end
unless Fog.mocking?
- AWS[:iam].delete_user('fog_user_policy_tests')
+ Fog::AWS[:iam].delete_user('fog_user_policy_tests')
end
end
\ No newline at end of file