Sha256: 7359f9764300de86557bc881ea97575aa1b9c9b3e1275e468ca62b569ca2ade2
Contents?: true
Size: 674 Bytes
Versions: 73
Compression:
Stored size: 674 Bytes
Contents
shared_context 'region', :region do before do |example| region = example.metadata[:region] @_region = Aws.config[:region] Aws.config[:region] = region end after do Aws.config[:region] = @_region end end shared_context 'account', :account do before do |example| sts_client = Aws::STS::Client.new raise Awspec::InvalidAccountError unless sts_client.get_caller_identity.account == example.metadata[:account] example.metadata[:described_class].account = example.metadata[:account] end end shared_context 'cluster', :cluster do before do |example| example.metadata[:described_class].cluster = example.metadata[:cluster] end end
Version data entries
73 entries across 73 versions & 2 rubygems