1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/requests/sts/assume_role_with_saml_tests.rb

19 lines
655 B
Ruby
Raw Permalink Normal View History

2015-01-02 12:34:40 -05:00
Shindo.tests('AWS::STS | assume role with SAML', ['aws']) do
2015-01-20 09:42:23 -05:00
@policy = {"Statement" => [{"Effect" => "Allow", "Action" => "*", "Resource" => "*"}]}
2015-01-20 09:42:23 -05:00
@response_format = {
'SessionToken' => String,
'SecretAccessKey' => String,
'Expiration' => String,
'AccessKeyId' => String,
'Arn' => String,
'RequestId' => String
}
2015-01-20 09:42:23 -05:00
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