1 Index: boto-2.40.0/boto/route53/connection.py
2 ===================================================================
3 --- boto-2.40.0.orig/boto/route53/connection.py
4 +++ boto-2.40.0/boto/route53/connection.py
5 @@ -152,8 +152,8 @@ class Route53Connection(AWSAuthConnectio
6 raise exception.DNSServerError(response.status,
9 - e = boto.jsonresponse.Element(list_marker='NameServers',
10 - item_marker=('NameServer',))
11 + e = boto.jsonresponse.Element(list_marker=('NameServers', 'VPCs'),
12 + item_marker=('NameServer', 'VPC'))
13 h = boto.jsonresponse.XmlHandler(e, None)
16 Index: boto-2.40.0/tests/integration/route53/test_zone.py
17 ===================================================================
18 --- boto-2.40.0.orig/tests/integration/route53/test_zone.py
19 +++ boto-2.40.0/tests/integration/route53/test_zone.py
20 @@ -186,6 +186,12 @@ class TestRoute53PrivateZone(unittest.Te
21 vpc_id=self.test_vpc.id,
22 vpc_region='us-east-1')
24 + def test_get_hosted_zone_for_private_zone(self):
25 + self.get_hosted_zone = self.route53.get_hosted_zone_by_name(self.base_domain)
26 + self.assertEquals(len(self.get_hosted_zone['GetHostedZoneResponse']['VPCs']), 1)
27 + self.assertEquals(self.get_hosted_zone['GetHostedZoneResponse']['VPCs'][0]['VPCRegion'], 'us-east-1')
28 + self.assertEquals(self.get_hosted_zone['GetHostedZoneResponse']['VPCs'][0]['VPCId'], self.test_vpc.id)
31 def tearDownClass(self):
32 if self.zone is not None:
33 Index: boto-2.40.0/tests/unit/route53/test_connection.py
34 ===================================================================
35 --- boto-2.40.0.orig/tests/unit/route53/test_connection.py
36 +++ boto-2.40.0/tests/unit/route53/test_connection.py
37 @@ -313,6 +313,16 @@ class TestGetHostedZoneRoute53(AWSMockSe
38 <NameServer>ns-1000.awsdns-00.co.uk</NameServer>
43 + <VPCRegion>eu-west-1</VPCRegion>
44 + <VPCId>vpc-12345</VPCId>
47 + <VPCRegion>us-west-1</VPCRegion>
48 + <VPCId>vpc-78900</VPCId>
51 </GetHostedZoneResponse>
54 @@ -330,6 +340,18 @@ class TestGetHostedZoneRoute53(AWSMockSe
55 ['DelegationSet']['NameServers'],
56 ['ns-1000.awsdns-40.org', 'ns-200.awsdns-30.com',
57 'ns-900.awsdns-50.net', 'ns-1000.awsdns-00.co.uk'])
58 + self.assertEqual(response['GetHostedZoneResponse']
59 + ['VPCs'][0]['VPCRegion'],
61 + self.assertEqual(response['GetHostedZoneResponse']
62 + ['VPCs'][0]['VPCId'],
64 + self.assertEqual(response['GetHostedZoneResponse']
65 + ['VPCs'][1]['VPCRegion'],
67 + self.assertEqual(response['GetHostedZoneResponse']
68 + ['VPCs'][1]['VPCId'],