Sha256: 95c522c66e448ddbdfe7d1f46ec04009ad210ef8a2b10fca9803f5b946b2f0ac

Contents?: true

Size: 474 Bytes

Versions: 14

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

OWNER = '123456789'
REGION = 'us-east-1'
TOPIC_ARN = "arn:aws:sns:#{REGION}:#{OWNER}:invalid"
TOPIC_SUBS_ARN = "arn:aws:sns:us-east-1:#{OWNER}:Foobar:3dbf4999-b3e2-4345-bd11-c34c9784ecca"

Aws.config[:sns] = {
  stub_responses: {
    get_topic_attributes: Aws::SNS::Errors::NotFound.new(
      TOPIC_ARN, 'no such topic'
    ),
    list_subscriptions_by_topic: Aws::SNS::Errors::NotFound.new(
      TOPIC_SUBS_ARN, 'no such topic'
    )
  }
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
awspec-1.32.0 lib/awspec/stub/sns_topic_error.rb
awspec-1.31.0 lib/awspec/stub/sns_topic_error.rb
awspec-1.30.0 lib/awspec/stub/sns_topic_error.rb
awspec-1.29.3 lib/awspec/stub/sns_topic_error.rb
awspec-1.29.2 lib/awspec/stub/sns_topic_error.rb
awspec-1.29.1 lib/awspec/stub/sns_topic_error.rb
awspec-1.29.0 lib/awspec/stub/sns_topic_error.rb
awspec-1.28.2 lib/awspec/stub/sns_topic_error.rb
awspec-1.28.1 lib/awspec/stub/sns_topic_error.rb
awspec-1.28.0 lib/awspec/stub/sns_topic_error.rb
awspec-1.27.1 lib/awspec/stub/sns_topic_error.rb
awspec-1.27.0 lib/awspec/stub/sns_topic_error.rb
awspec-1.26.0 lib/awspec/stub/sns_topic_error.rb
awspec-1.25.2 lib/awspec/stub/sns_topic_error.rb