Merge "Two fixes on test_list_available_zones"
This commit is contained in:
commit
0d24f2a02a
|
@ -25,7 +25,6 @@ class ListAvailableZonesTest(base.BaseNetworkTest):
|
|||
@utils.requires_ext(extension="availability_zone",
|
||||
service="network")
|
||||
def test_list_available_zones(self):
|
||||
resource = 'availability_zones'
|
||||
body = getattr(self.client, 'list_%s' % resource)()
|
||||
body = self.client.list_availability_zones()
|
||||
self.assertIsNotNone(body)
|
||||
self.assertIsInstance(body['availability_zones'], list)
|
||||
|
|
|
@ -41,7 +41,7 @@ class NetworkClientJSON(service_client.RestClient):
|
|||
|
||||
# The following list represents resource names that do not require
|
||||
# changing underscore to a hyphen
|
||||
hyphen_exceptions = ["service_profiles"]
|
||||
hyphen_exceptions = ["service_profiles", "availability_zones"]
|
||||
# the following map is used to construct proper URI
|
||||
# for the given neutron resource
|
||||
service_resource_prefix_map = {
|
||||
|
|
Loading…
Reference in New Issue