Add informations in subscriptions attributes
This commit is contained in:
parent
4497f18c1a
commit
83c8740b91
@ -339,6 +339,14 @@ class SNSBackend(BaseBackend):
|
||||
return old_subscription
|
||||
topic = self.get_topic(topic_arn)
|
||||
subscription = Subscription(topic, endpoint, protocol)
|
||||
attributes = {
|
||||
'PendingConfirmation' : 'false',
|
||||
'Endpoint' : endpoint,
|
||||
'TopicArn' : topic_arn,
|
||||
'Protocol': protocol,
|
||||
'SubscriptionArn': subscription.arn
|
||||
}
|
||||
subscription.attributes = attributes
|
||||
self.subscriptions[subscription.arn] = subscription
|
||||
return subscription
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user