Added ConfirmSubscription + Tests + checks

For now subscriptions do nothing, but if we go the route of handing out subscribe tokens, I
have layed the groundwork for validating that
This commit is contained in:
Terry Cain 2017-09-20 21:47:02 +01:00
commit 19074c535c
No known key found for this signature in database
GPG key ID: 14D90844E4E9B9F3
3 changed files with 57 additions and 6 deletions

View file

@ -77,6 +77,7 @@ class Subscription(BaseModel):
self.protocol = protocol
self.arn = make_arn_for_subscription(self.topic.arn)
self.attributes = {}
self.confirmed = False
def publish(self, message, message_id):
if self.protocol == 'sqs':