This commit is contained in:
jjofseattle 2013-11-15 15:35:46 -08:00
parent 8da1d31432
commit 08777e4b18
3 changed files with 5 additions and 6 deletions

View File

@ -17,12 +17,14 @@ class FakeZone:
class FakeResourceRecordSet:
def __init__(self, name, type, ttl, rrlist):
self.name = name
self.type = type
self.ttl = ttl
self.rrList = rrlist
class Route53Backend(BaseBackend):
def __init__(self):
@ -49,5 +51,3 @@ class Route53Backend(BaseBackend):
route53_backend = Route53Backend()

View File

@ -33,6 +33,7 @@ def get_or_delete_hostzone_response(request, full_url, headers):
route53_backend.delete_hosted_zone(zoneid)
return 200, headers, DELETE_HOSTED_ZONE_RESPONSE
def rrset_response(request, full_url, headers):
parsed_url = urlparse(full_url)
method = request.method
@ -121,4 +122,3 @@ LIST_HOSTED_ZONES_RESPONSE = """<ListHostedZonesResponse xmlns="https://route53.
{% endfor %}
</HostedZones>
</ListHostedZonesResponse>"""

View File

@ -52,7 +52,6 @@ def test_rrset():
rrsets = conn.get_all_rrsets(zoneid, type="CNAME")
rrsets.should.have.length_of(0)
changes = ResourceRecordSets(conn, zoneid)
changes.add_change("DELETE", "foo.bar.testdns.aws.com", "A")
changes.commit()