Sha256: ff477527d4b04d81e2f793ca7b07b23d691b9c6f893fe1ef725f646e8717ca96

Contents?: true

Size: 1004 Bytes

Versions: 42

Compression:

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

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

42 entries across 42 versions & 3 rubygems

Version Path
awspec-1.25.1 lib/awspec/shared_context.rb
awspec-1.25.0 lib/awspec/shared_context.rb
awspec-1.24.4 lib/awspec/shared_context.rb
awspec-1.24.3 lib/awspec/shared_context.rb
awspec-1.24.2 lib/awspec/shared_context.rb
awspec-1.24.1 lib/awspec/shared_context.rb
awspec-1.24.0 lib/awspec/shared_context.rb
awspec-1.23.0 lib/awspec/shared_context.rb
awspec-1.22.1 lib/awspec/shared_context.rb
awspec-1.22.0 lib/awspec/shared_context.rb
awspec-1.21.1 lib/awspec/shared_context.rb
awspec-1.21.0 lib/awspec/shared_context.rb
awspec-1.20.0 lib/awspec/shared_context.rb
awspec-1.19.2 lib/awspec/shared_context.rb
awspec-1.19.1 lib/awspec/shared_context.rb
awspec-1.19.0 lib/awspec/shared_context.rb
cthiesfork-awspec-1.2.4 lib/awspec/shared_context.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/shared_context.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/shared_context.rb
awspec-1.18.6 lib/awspec/shared_context.rb