mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Enable Shindo tests for the mocked methods
This commit is contained in:
parent
9a89d5128d
commit
7b5602c758
2 changed files with 3 additions and 7 deletions
|
@ -1,8 +1,6 @@
|
|||
Shindo.tests('AWS::IAM | access key requests', ['aws']) do
|
||||
|
||||
unless Fog.mocking?
|
||||
Fog::AWS[:iam].create_user('fog_access_key_tests')
|
||||
end
|
||||
Fog::AWS[:iam].create_user('fog_access_key_tests')
|
||||
|
||||
tests('success') do
|
||||
|
||||
|
@ -17,7 +15,6 @@ Shindo.tests('AWS::IAM | access key requests', ['aws']) do
|
|||
}
|
||||
|
||||
tests("#create_access_key('UserName' => 'fog_access_key_tests')").formats(@access_key_format) do
|
||||
pending if Fog.mocking?
|
||||
data = Fog::AWS[:iam].create_access_key('UserName' => 'fog_access_key_tests').body
|
||||
@access_key_id = data['AccessKey']['AccessKeyId']
|
||||
data
|
||||
|
@ -57,4 +54,4 @@ Shindo.tests('AWS::IAM | access key requests', ['aws']) do
|
|||
Fog::AWS[:iam].delete_user('fog_access_key_tests')
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,7 +17,6 @@ Shindo.tests('AWS::IAM | user requests', ['aws']) do
|
|||
}
|
||||
|
||||
tests("#create_user('fog_user')").formats(@user_format) do
|
||||
pending if Fog.mocking?
|
||||
Fog::AWS[:iam].create_user('fog_user').body
|
||||
end
|
||||
|
||||
|
@ -62,4 +61,4 @@ Shindo.tests('AWS::IAM | user requests', ['aws']) do
|
|||
Fog::AWS[:iam].delete_group('fog_user_tests')
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue