Sha256: 58a04ac1d2437beaf6ec898fae7c2ce62c35f0cfe41aa8f09f1a28d687c77e71

Contents?: true

Size: 583 Bytes

Versions: 20

Compression:

Stored size: 583 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

20 entries across 20 versions & 5 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/aws/requests/sts/assume_role_tests.rb
fog-aws-0.0.8 tests/requests/sts/assume_role_tests.rb
fog-aws-0.0.7 tests/requests/sts/assume_role_tests.rb
fog-aws-0.0.6 tests/requests/sts/assume_role_tests.rb
fog-aws-0.0.5 tests/requests/sts/assume_role_tests.rb
fog-1.26.0 tests/aws/requests/sts/assume_role_tests.rb
fog-1.25.0 tests/aws/requests/sts/assume_role_tests.rb
nsidc-fog-1.24.1 tests/aws/requests/sts/assume_role_tests.rb
fog-1.24.0 tests/aws/requests/sts/assume_role_tests.rb
ns-fog-1.22.11 tests/aws/requests/sts/assume_role_tests.rb
ns-fog-1.22.10 tests/aws/requests/sts/assume_role_tests.rb
ns-fog-1.22.9 tests/aws/requests/sts/assume_role_tests.rb
ns-fog-1.22.8 tests/aws/requests/sts/assume_role_tests.rb
ns-fog-1.22.7 tests/aws/requests/sts/assume_role_tests.rb
ns-fog-1.22.6 tests/aws/requests/sts/assume_role_tests.rb
fog-1.23.0 tests/aws/requests/sts/assume_role_tests.rb
ns-fog-1.22.4 tests/aws/requests/sts/assume_role_tests.rb
ns-fog-1.22.3 tests/aws/requests/sts/assume_role_tests.rb
ns-fog-1.22.2 tests/aws/requests/sts/assume_role_tests.rb
fog-1.22.1 tests/aws/requests/sts/assume_role_tests.rb