add responses for methods don't have implemented in route53

This commit is contained in:
beeva-antonioirizar 2016-02-17 17:36:55 +01:00
parent a621c83bf7
commit b91596db32
2 changed files with 9 additions and 0 deletions

View File

@ -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 = """<ListResourceRecordSetsResponse xmlns="https://route53.amazonaws.com/doc/2012-12-12/">
<ResourceRecordSets>

View File

@ -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,
}