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
cthiesfork-awspec-1.2.2 lib/awspec/shared_context.rb
cthiesfork-awspec-1.2.1 lib/awspec/shared_context.rb
awspec-1.18.5 lib/awspec/shared_context.rb
cthiesfork-awspec-1.2.0 lib/awspec/shared_context.rb
cthiesfork-awspec-1.1.0 lib/awspec/shared_context.rb
cthiesfork-awspec-1.0.0 lib/awspec/shared_context.rb
awspec-1.18.4 lib/awspec/shared_context.rb
awspec-1.18.3 lib/awspec/shared_context.rb
awspec-1.18.2 lib/awspec/shared_context.rb
awspec-1.18.1 lib/awspec/shared_context.rb
awspec-1.18.0 lib/awspec/shared_context.rb
awspec-1.17.4 lib/awspec/shared_context.rb
awspec-1.17.3 lib/awspec/shared_context.rb
awspec-1.17.2 lib/awspec/shared_context.rb
awspec-1.17.1 lib/awspec/shared_context.rb
awspec-1.17.0 lib/awspec/shared_context.rb
awspec-1.16.1 lib/awspec/shared_context.rb
awspec-1.16.0 lib/awspec/shared_context.rb
awspec-1.15.3 lib/awspec/shared_context.rb
awspec-1.15.2 lib/awspec/shared_context.rb