pep8
This commit is contained in:
parent
8da1d31432
commit
08777e4b18
@ -17,12 +17,14 @@ class FakeZone:
|
|||||||
|
|
||||||
|
|
||||||
class FakeResourceRecordSet:
|
class FakeResourceRecordSet:
|
||||||
|
|
||||||
def __init__(self, name, type, ttl, rrlist):
|
def __init__(self, name, type, ttl, rrlist):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.type = type
|
self.type = type
|
||||||
self.ttl = ttl
|
self.ttl = ttl
|
||||||
self.rrList = rrlist
|
self.rrList = rrlist
|
||||||
|
|
||||||
|
|
||||||
class Route53Backend(BaseBackend):
|
class Route53Backend(BaseBackend):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -49,5 +51,3 @@ class Route53Backend(BaseBackend):
|
|||||||
|
|
||||||
|
|
||||||
route53_backend = Route53Backend()
|
route53_backend = Route53Backend()
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ def get_or_delete_hostzone_response(request, full_url, headers):
|
|||||||
route53_backend.delete_hosted_zone(zoneid)
|
route53_backend.delete_hosted_zone(zoneid)
|
||||||
return 200, headers, DELETE_HOSTED_ZONE_RESPONSE
|
return 200, headers, DELETE_HOSTED_ZONE_RESPONSE
|
||||||
|
|
||||||
|
|
||||||
def rrset_response(request, full_url, headers):
|
def rrset_response(request, full_url, headers):
|
||||||
parsed_url = urlparse(full_url)
|
parsed_url = urlparse(full_url)
|
||||||
method = request.method
|
method = request.method
|
||||||
@ -121,4 +122,3 @@ LIST_HOSTED_ZONES_RESPONSE = """<ListHostedZonesResponse xmlns="https://route53.
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</HostedZones>
|
</HostedZones>
|
||||||
</ListHostedZonesResponse>"""
|
</ListHostedZonesResponse>"""
|
||||||
|
|
||||||
|
@ -52,7 +52,6 @@ def test_rrset():
|
|||||||
rrsets = conn.get_all_rrsets(zoneid, type="CNAME")
|
rrsets = conn.get_all_rrsets(zoneid, type="CNAME")
|
||||||
rrsets.should.have.length_of(0)
|
rrsets.should.have.length_of(0)
|
||||||
|
|
||||||
|
|
||||||
changes = ResourceRecordSets(conn, zoneid)
|
changes = ResourceRecordSets(conn, zoneid)
|
||||||
changes.add_change("DELETE", "foo.bar.testdns.aws.com", "A")
|
changes.add_change("DELETE", "foo.bar.testdns.aws.com", "A")
|
||||||
changes.commit()
|
changes.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user