mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
592 B
Ruby
21 lines
592 B
Ruby
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
|