mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add simple test
This commit is contained in:
parent
add923fc3c
commit
2b1b0aa8ed
1 changed files with 18 additions and 0 deletions
18
tests/aws/requests/sts/assume_role_with_saml_tests.rb
Normal file
18
tests/aws/requests/sts/assume_role_with_saml_tests.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
Shindo.tests('AWS::STS | assume role with SAML', ['aws']) do
|
||||
|
||||
@policy = {"Statement" => [{"Effect" => "Allow", "Action" => "*", "Resource" => "*"}]}
|
||||
|
||||
@response_format = {
|
||||
'SessionToken' => String,
|
||||
'SecretAccessKey' => String,
|
||||
'Expiration' => String,
|
||||
'AccessKeyId' => String,
|
||||
'Arn' => String,
|
||||
'RequestId' => String
|
||||
}
|
||||
|
||||
tests("#assume_role_with_saml('role_arn', 'principal_arn', 'saml_assertion', #{@policy.inspect}, 900)").formats(@response_format) do
|
||||
pending if Fog.mocking?
|
||||
Fog::AWS[:sts].assume_role_with_saml("role_arn","principal_arn","saml_assertion", @policy, 900).body
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue