From dc11f71ff0fa95813c0bca120827e8c5607003ba Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Tue, 1 Jul 2014 21:14:28 -0400 Subject: [PATCH] Add NextToken element to appropriate SNS responses. cc #144 --- moto/sns/responses.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/moto/sns/responses.py b/moto/sns/responses.py index 5fb7a0953..bd0fde2a0 100644 --- a/moto/sns/responses.py +++ b/moto/sns/responses.py @@ -28,7 +28,8 @@ class SNSResponse(BaseResponse): return json.dumps({ 'ListTopicsResponse': { 'ListTopicsResult': { - 'Topics': [{'TopicArn': topic.arn} for topic in topics] + 'Topics': [{'TopicArn': topic.arn} for topic in topics], + 'NextToken': None, } }, 'ResponseMetadata': { @@ -129,7 +130,8 @@ class SNSResponse(BaseResponse): "SubscriptionArn": subscription.arn, "Owner": subscription.topic.account_id, "Endpoint": subscription.endpoint, - } for subscription in subscriptions] + } for subscription in subscriptions], + 'NextToken': None, }, "ResponseMetadata": { "RequestId": "384ac68d-3775-11df-8963-01868b7c937a", @@ -150,7 +152,8 @@ class SNSResponse(BaseResponse): "SubscriptionArn": subscription.arn, "Owner": subscription.topic.account_id, "Endpoint": subscription.endpoint, - } for subscription in subscriptions] + } for subscription in subscriptions], + 'NextToken': None, }, "ResponseMetadata": { "RequestId": "384ac68d-3775-11df-8963-01868b7c937a",