Adding missing Param zoneId in the describe-availability-zone
This commit is contained in:
parent
48288d8bb1
commit
7a9cdd4fd2
@ -35,6 +35,7 @@ DESCRIBE_ZONES_RESPONSE = """<DescribeAvailabilityZonesResponse xmlns="http://ec
|
|||||||
<zoneName>{{ zone.name }}</zoneName>
|
<zoneName>{{ zone.name }}</zoneName>
|
||||||
<zoneState>available</zoneState>
|
<zoneState>available</zoneState>
|
||||||
<regionName>{{ zone.region_name }}</regionName>
|
<regionName>{{ zone.region_name }}</regionName>
|
||||||
|
<zoneId>{{ zone.zone_id }}</zoneId>
|
||||||
<messageSet/>
|
<messageSet/>
|
||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -52,3 +52,15 @@ def test_boto3_availability_zones():
|
|||||||
resp = conn.describe_availability_zones()
|
resp = conn.describe_availability_zones()
|
||||||
for rec in resp["AvailabilityZones"]:
|
for rec in resp["AvailabilityZones"]:
|
||||||
rec["ZoneName"].should.contain(region)
|
rec["ZoneName"].should.contain(region)
|
||||||
|
|
||||||
|
|
||||||
|
@mock_ec2
|
||||||
|
def test_boto3_zoneId_in_availability_zones():
|
||||||
|
conn = boto3.client("ec2", "us-east-1")
|
||||||
|
resp = conn.describe_availability_zones()
|
||||||
|
for rec in resp["AvailabilityZones"]:
|
||||||
|
rec.get("ZoneId").should.contain("use1")
|
||||||
|
conn = boto3.client("ec2", "us-west-1")
|
||||||
|
resp = conn.describe_availability_zones()
|
||||||
|
for rec in resp["AvailabilityZones"]:
|
||||||
|
rec.get("ZoneId").should.contain("usw1")
|
||||||
|
Loading…
Reference in New Issue
Block a user