Sha256: f687f087a7ec9f0c167774e75e9b4121b04d8c8843751c2e0b0a6cab76214fc5
Contents?: true
Size: 1.01 KB
Versions: 12
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true 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 shared_context 'version', :version do before do |example| example.metadata[:described_class].version = example.metadata[:version] end end shared_context 'application_name', :application_name do before do |example| example.metadata[:described_class].application_name = example.metadata[:application_name] end end
Version data entries
12 entries across 12 versions & 1 rubygems