diff --git a/neutron_tempest_plugin/api/test_availability_zones.py b/neutron_tempest_plugin/api/test_availability_zones.py index 8ee52a3f..9d75c28d 100644 --- a/neutron_tempest_plugin/api/test_availability_zones.py +++ b/neutron_tempest_plugin/api/test_availability_zones.py @@ -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) diff --git a/neutron_tempest_plugin/services/network/json/network_client.py b/neutron_tempest_plugin/services/network/json/network_client.py index 58dfbf42..3b07e247 100644 --- a/neutron_tempest_plugin/services/network/json/network_client.py +++ b/neutron_tempest_plugin/services/network/json/network_client.py @@ -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 = {