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

Version Path
awspec-0.85.2 lib/awspec/shared_context.rb
awspec-0.85.1 lib/awspec/shared_context.rb
awspec-0.85.0 lib/awspec/shared_context.rb
awspec-0.84.1 lib/awspec/shared_context.rb
awspec-0.84.0 lib/awspec/shared_context.rb
awspec-0.83.0 lib/awspec/shared_context.rb
awspec-0.82.3 lib/awspec/shared_context.rb
awspec-0.82.2 lib/awspec/shared_context.rb
awspec-0.82.1 lib/awspec/shared_context.rb
awspec-0.82.0 lib/awspec/shared_context.rb
awspec-0.81.1 lib/awspec/shared_context.rb
awspec-0.81.0 lib/awspec/shared_context.rb
awspec-0.80.1 lib/awspec/shared_context.rb
awspec-0.80.0 lib/awspec/shared_context.rb
awspec-0.79.2 lib/awspec/shared_context.rb
awspec-0.79.1 lib/awspec/shared_context.rb
awspec-0.79.0 lib/awspec/shared_context.rb
awspec-0.78.1 lib/awspec/shared_context.rb
awspec-0.77.1 lib/awspec/shared_context.rb
awspec-0.77.0 lib/awspec/shared_context.rb