Merge "Two fixes on test_list_available_zones"

This commit is contained in:
Zuul 2018-11-05 20:28:13 +00:00 committed by Gerrit Code Review
commit 0d24f2a02a
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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 = {