From b91596db329b6e27e53e801d00d70ae025f09347 Mon Sep 17 00:00:00 2001 From: beeva-antonioirizar Date: Wed, 17 Feb 2016 17:36:55 +0100 Subject: [PATCH] add responses for methods don't have implemented in route53 --- moto/route53/responses.py | 8 ++++++++ moto/route53/urls.py | 1 + 2 files changed, 9 insertions(+) diff --git a/moto/route53/responses.py b/moto/route53/responses.py index 2639caa0c..31c69cbf6 100644 --- a/moto/route53/responses.py +++ b/moto/route53/responses.py @@ -113,6 +113,14 @@ def health_check_response(request, full_url, headers): health_checks = route53_backend.get_health_checks() return 200, headers, template.render(health_checks=health_checks) +def not_implemented_methods(request, full_url, headers): + action = '' + if 'tags' in full_url: + action = 'tags' + elif 'trafficpolicyinstances' in full_url: + action = 'policies' + raise NotImplementedError("The action for {0} has not been implemented for route 53".format(action)) + LIST_RRSET_REPONSE = """ diff --git a/moto/route53/urls.py b/moto/route53/urls.py index 69f776ff0..e0c620b6a 100644 --- a/moto/route53/urls.py +++ b/moto/route53/urls.py @@ -10,4 +10,5 @@ url_paths = { '{0}hostedzone/[^/]+$': responses.get_or_delete_hostzone_response, '{0}hostedzone/[^/]+/rrset$': responses.rrset_response, '{0}healthcheck': responses.health_check_response, + '{0}tags|trafficpolicyinstances/*': responses.not_implemented, }