Fix Route53 response and tests (#804)
* Fix route53 response \n Fix route53 tests * Fixing index * fix zone ID on test_route53_with_update
This commit is contained in:
parent
a967ec0d39
commit
2bf85fe25d
3 changed files with 21 additions and 3 deletions
|
|
@ -1170,6 +1170,8 @@ def test_route53_roundrobin():
|
|||
zones = route53_conn.get_all_hosted_zones()['ListHostedZonesResponse']['HostedZones']
|
||||
list(zones).should.have.length_of(1)
|
||||
zone_id = zones[0]['Id']
|
||||
zone_id = zone_id.split('/')
|
||||
zone_id = zone_id[2]
|
||||
|
||||
rrsets = route53_conn.get_all_rrsets(zone_id)
|
||||
rrsets.hosted_zone_id.should.equal(zone_id)
|
||||
|
|
@ -1215,6 +1217,9 @@ def test_route53_ec2_instance_with_public_ip():
|
|||
zones = route53_conn.get_all_hosted_zones()['ListHostedZonesResponse']['HostedZones']
|
||||
list(zones).should.have.length_of(1)
|
||||
zone_id = zones[0]['Id']
|
||||
zone_id = zone_id.split('/')
|
||||
zone_id = zone_id[2]
|
||||
|
||||
|
||||
rrsets = route53_conn.get_all_rrsets(zone_id)
|
||||
rrsets.should.have.length_of(1)
|
||||
|
|
@ -1255,6 +1260,8 @@ def test_route53_associate_health_check():
|
|||
zones = route53_conn.get_all_hosted_zones()['ListHostedZonesResponse']['HostedZones']
|
||||
list(zones).should.have.length_of(1)
|
||||
zone_id = zones[0]['Id']
|
||||
zone_id = zone_id.split('/')
|
||||
zone_id = zone_id[2]
|
||||
|
||||
rrsets = route53_conn.get_all_rrsets(zone_id)
|
||||
rrsets.should.have.length_of(1)
|
||||
|
|
@ -1278,6 +1285,8 @@ def test_route53_with_update():
|
|||
zones = route53_conn.get_all_hosted_zones()['ListHostedZonesResponse']['HostedZones']
|
||||
list(zones).should.have.length_of(1)
|
||||
zone_id = zones[0]['Id']
|
||||
zone_id = zone_id.split('/')
|
||||
zone_id = zone_id[2]
|
||||
|
||||
rrsets = route53_conn.get_all_rrsets(zone_id)
|
||||
rrsets.should.have.length_of(1)
|
||||
|
|
@ -1295,6 +1304,8 @@ def test_route53_with_update():
|
|||
zones = route53_conn.get_all_hosted_zones()['ListHostedZonesResponse']['HostedZones']
|
||||
list(zones).should.have.length_of(1)
|
||||
zone_id = zones[0]['Id']
|
||||
zone_id = zone_id.split('/')
|
||||
zone_id = zone_id[2]
|
||||
|
||||
rrsets = route53_conn.get_all_rrsets(zone_id)
|
||||
rrsets.should.have.length_of(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue