Sha256: f9f1d56dc7c08c1c3b23dc19884bfd5f963807ddbe80c5b068b46509a2ab2633

Contents?: true

Size: 604 Bytes

Versions: 59

Compression:

Stored size: 604 Bytes

Contents

Shindo.tests('AWS::STS | assume role', ['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('rolename', 'assumed_role_session', 'external_id', #{@policy.inspect}, 900)").formats(@response_format) do
    pending if Fog.mocking?
    Fog::AWS[:sts].assume_role("rolename","assumed_role_session","external_id", @policy, 900).body
  end

end

Version data entries

59 entries across 57 versions & 3 rubygems

Version Path
fog-aws-3.12.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.11.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.10.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.9.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.8.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.7.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.6.7 tests/requests/sts/assume_role_tests.rb
fog-aws-3.6.6 tests/requests/sts/assume_role_tests.rb
fog-aws-3.6.5 tests/requests/sts/assume_role_tests.rb
fog-aws-3.6.4 tests/requests/sts/assume_role_tests.rb
fog-aws-3.6.3 tests/requests/sts/assume_role_tests.rb
fog-aws-3.6.2 tests/requests/sts/assume_role_tests.rb
fog-aws-3.5.2 tests/requests/sts/assume_role_tests.rb
fog-aws-3.5.1 tests/requests/sts/assume_role_tests.rb
fog-aws-3.5.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.4.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.3.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.2.0 tests/requests/sts/assume_role_tests.rb
fog-aws-3.1.0 tests/requests/sts/assume_role_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/tests/requests/sts/assume_role_tests.rb