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 a28d6687..ee7d0c91 100644 --- a/neutron_tempest_plugin/services/network/json/network_client.py +++ b/neutron_tempest_plugin/services/network/json/network_client.py @@ -43,7 +43,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 = {