Sha256: 3860bd5794d213b986d1d628b95201f460209a440a92a443006daaa2fc582bce

Contents?: true

Size: 1.68 KB

Versions: 51

Compression:

Stored size: 1.68 KB

Contents

Aws.config[:sns] = {
  stub_responses: {
    get_topic_attributes: {
      attributes: {
        # rubocop:disable LineLength
        'Policy'                  => '{\"Version\":\"2008-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:GetTopicAttributes\",\"SNS:SetTopicAttributes\",\"SNS:AddPermission\",\"SNS:RemovePermission\",\"SNS:DeleteTopic\",\"SNS:Subscribe\",\"SNS:ListSubscriptionsByTopic\",\"SNS:Publish\",\"SNS:Receive\"],\"Resource\":\"arn:aws:sns:us-east-1:123456789:foobar-lambda-sample\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"123456789\"}}}]}',
        'Owner'                   => '123456789',
        'SubscriptionsPending'    => '0',
        'TopicArn'                => 'arn:aws:sns:us-east-1:123456789:foobar',
        'EffectiveDeliveryPolicy' => '{\"http\":{\"defaultHealthyRetryPolicy\":{\"minDelayTarget\":20,\"maxDelayTarget\":20,\"numRetries\":3,\"numMaxDelayRetries\":0,\"numNoDelayRetries\":0,\"numMinDelayRetries\":0,\"backoffFunction\":\"linear\"},\"disableSubscriptionOverrides\":false}}',
        'SubscriptionsConfirmed'  => '1',
        'DisplayName'             => 'Useless',
        'SubscriptionsDeleted'    => '0'
      }
    },
    list_subscriptions_by_topic: {
      subscriptions: [
        {
          subscription_arn: 'arn:aws:sns:us-east-1:123456789:Foobar:3dbf4999-b3e2-4345-bd11-c34c9784ecca',
          owner: '123456789',
          protocol: 'lambda',
          endpoint: 'arn:aws:lambda:us-east-1:123456789:function:foobar',
          topic_arn: 'arn:aws:sns:us-east-1:123456789:foobar'
        }
      ],
      next_token: nil
    }
  }
}

Version data entries

51 entries across 51 versions & 3 rubygems

Version Path
awspec-1.24.4 lib/awspec/stub/sns_topic.rb
awspec-1.24.3 lib/awspec/stub/sns_topic.rb
awspec-1.24.2 lib/awspec/stub/sns_topic.rb
awspec-1.24.1 lib/awspec/stub/sns_topic.rb
awspec-1.24.0 lib/awspec/stub/sns_topic.rb
awspec-1.23.0 lib/awspec/stub/sns_topic.rb
awspec-1.22.1 lib/awspec/stub/sns_topic.rb
awspec-1.22.0 lib/awspec/stub/sns_topic.rb
awspec-1.21.1 lib/awspec/stub/sns_topic.rb
awspec-1.21.0 lib/awspec/stub/sns_topic.rb
awspec-1.20.0 lib/awspec/stub/sns_topic.rb
awspec-1.19.2 lib/awspec/stub/sns_topic.rb
awspec-1.19.1 lib/awspec/stub/sns_topic.rb
awspec-1.19.0 lib/awspec/stub/sns_topic.rb
cthiesfork-awspec-1.2.4 lib/awspec/stub/sns_topic.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/stub/sns_topic.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/stub/sns_topic.rb
awspec-1.18.6 lib/awspec/stub/sns_topic.rb
cthiesfork-awspec-1.2.2 lib/awspec/stub/sns_topic.rb
cthiesfork-awspec-1.2.1 lib/awspec/stub/sns_topic.rb