2015-01-02 12:34:40 -05:00
|
|
|
Shindo.tests('AWS::STS | session tokens', ['aws']) do
|
2014-12-30 17:25:09 -05:00
|
|
|
|
|
|
|
@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
|
|
|
|
Fog::AWS[:sts].get_federation_token("test@fog.io", @policy).body
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|