From 9be8c71dcd90467cc833fe71c91ad5712503a514 Mon Sep 17 00:00:00 2001 From: Nguyen Hung Phuong Date: Fri, 26 Jan 2018 11:14:33 +0700 Subject: [PATCH] Switch to tempest.common.utils.requires_ext Tempest deprecated tempest.test.requires_ext [1] At this moment, it is available in tempest.common.utils [1] https://review.openstack.org/#/c/493668/ Change-Id: I5be0cce4aafc9e088347f2a04f92395b1f5dfd31 --- neutron_taas/tests/tempest_plugin/tests/api/test_taas.py | 4 ++-- neutron_taas/tests/tempest_plugin/tests/scenario/test_taas.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/neutron_taas/tests/tempest_plugin/tests/api/test_taas.py b/neutron_taas/tests/tempest_plugin/tests/api/test_taas.py index 0837aa35..db027fbc 100644 --- a/neutron_taas/tests/tempest_plugin/tests/api/test_taas.py +++ b/neutron_taas/tests/tempest_plugin/tests/api/test_taas.py @@ -13,9 +13,9 @@ # License for the specific language governing permissions and limitations # under the License. +from tempest.common import utils from tempest import config from tempest.lib import decorators -from tempest import test from neutron_taas.tests.tempest_plugin.tests.api import base @@ -27,7 +27,7 @@ class TaaSExtensionTestJSON(base.BaseTaaSTest): @classmethod def resource_setup(cls): super(TaaSExtensionTestJSON, cls).resource_setup() - if not test.is_extension_enabled('taas', 'network'): + if not utils.is_extension_enabled('taas', 'network'): msg = "TaaS Extension not enabled." raise cls.skipException(msg) diff --git a/neutron_taas/tests/tempest_plugin/tests/scenario/test_taas.py b/neutron_taas/tests/tempest_plugin/tests/scenario/test_taas.py index 3fcd6857..3aa2deaa 100644 --- a/neutron_taas/tests/tempest_plugin/tests/scenario/test_taas.py +++ b/neutron_taas/tests/tempest_plugin/tests/scenario/test_taas.py @@ -13,9 +13,9 @@ # License for the specific language governing permissions and limitations # under the License. +from tempest.common import utils from tempest import config from tempest.lib import decorators -from tempest import test from neutron_taas.tests.tempest_plugin.tests.scenario import base @@ -28,7 +28,7 @@ class TestTaaS(base.TaaSScenarioTest): def resource_setup(cls): super(TestTaaS, cls).resource_setup() for ext in ['taas']: - if not test.is_extension_enabled(ext, 'network'): + if not utils.is_extension_enabled(ext, 'network'): msg = "%s Extension not enabled." % ext raise cls.skipException(msg)