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-1.5.0 lib/awspec/shared_context.rb
awspec-1.4.3 lib/awspec/shared_context.rb
awspec-1.4.2 lib/awspec/shared_context.rb
awspec-1.4.1 lib/awspec/shared_context.rb
awspec-1.4.0 lib/awspec/shared_context.rb
awspec-1.3.1 lib/awspec/shared_context.rb
awspec-1.3.0 lib/awspec/shared_context.rb
awspec-1.2.0 lib/awspec/shared_context.rb
awspec-1.1.0 lib/awspec/shared_context.rb
awspec-1.0.0 lib/awspec/shared_context.rb
awspec-1.0.0.rc lib/awspec/shared_context.rb
awspec-0.88.2 lib/awspec/shared_context.rb
awspec-0.88.1 lib/awspec/shared_context.rb
awspec-0.88.0 lib/awspec/shared_context.rb
awspec-0.87.1 lib/awspec/shared_context.rb
awspec-0.87.0 lib/awspec/shared_context.rb
awspec-0.86.0 lib/awspec/shared_context.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/shared_context.rb
awspec-0.85.3 lib/awspec/shared_context.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/shared_context.rb