Add tests for autoconfirmation

This commit is contained in:
Athanasios Voutsadakis
2017-04-25 17:01:38 +01:00
parent 04b003c152
commit 74433c9335
3 changed files with 52 additions and 2 deletions

View File

@@ -36,6 +36,9 @@ def process_ses_response():
current_app.logger.info("SNS subscription confirmation url: {}".format(ses_request['SubscribeURL']))
subscribed_topic = confirm_subscription(ses_request)
current_app.logger.info("Automatically subscribed to topic: {}".format(subscribed_topic))
return jsonify(
result="success", message="SES callback succeeded"
), 200
errors = validate_callback_data(data=ses_request, fields=['Message'], client_name=client_name)
if errors: