mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Split [AWS|STS] tests into separate files per #609
This commit is contained in:
parent
306f24163d
commit
d96b5ff7b9
2 changed files with 21 additions and 18 deletions
21
tests/aws/requests/sts/get_federation_token_tests.rb
Normal file
21
tests/aws/requests/sts/get_federation_token_tests.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
Shindo.tests('AWS::STS | session tokens', ['aws']) do
|
||||
|
||||
@policy = {"Statement" => [{"Effect" => "Allow", "Action" => "*", "Resource" => "*"}]}
|
||||
|
||||
@federation_format = {
|
||||
'SessionToken' => String,
|
||||
'SecretAccessKey' => String,
|
||||
'Expiration' => String,
|
||||
'AccessKeyId' => String,
|
||||
'Arn' => String,
|
||||
'FederatedUserId' => String,
|
||||
'PackedPolicySize' => String,
|
||||
'RequestId' => String
|
||||
}
|
||||
|
||||
tests("#get_federation_token('test@fog.io', #{@policy.inspect})").formats(@federation_format) do
|
||||
pending if Fog.mocking?
|
||||
Fog::AWS[:sts].get_federation_token("test@fog.io", @policy).body
|
||||
end
|
||||
|
||||
end
|
|
@ -13,22 +13,4 @@ Shindo.tests('AWS::STS | session tokens', ['aws']) do
|
|||
Fog::AWS[:sts].get_session_token.body
|
||||
end
|
||||
|
||||
@policy = {"Statement" => [{"Effect" => "Allow", "Action" => "*", "Resource" => "*"}]}
|
||||
|
||||
@federation_format = {
|
||||
'SessionToken' => String,
|
||||
'SecretAccessKey' => String,
|
||||
'Expiration' => String,
|
||||
'AccessKeyId' => String,
|
||||
'Arn' => String,
|
||||
'FederatedUserId' => String,
|
||||
'PackedPolicySize' => String,
|
||||
'RequestId' => String
|
||||
}
|
||||
|
||||
tests("#get_federation_token('test@fog.io', #{@policy.inspect})").formats(@federation_format) do
|
||||
pending if Fog.mocking?
|
||||
Fog::AWS[:sts].get_federation_token("test@fog.io", @policy).body
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue