Switch to tempest.common.utils.is_extension_enabled

The tempest.test.is_extension_enabled() has moved to
tempest.common.utils.is_extension_enabled() in Pike.

Change-Id: I8fb12f913f187e4f0208438e7f39b2691f0dd4f3
This commit is contained in:
Hirofumi Ichihara 2017-09-14 10:47:35 -06:00 committed by Jens Harbott
parent 1c12393c14
commit 95d2bdfde1
2 changed files with 4 additions and 4 deletions

View File

@ -13,10 +13,10 @@
# under the License.
import netaddr
from tempest.common import utils
from tempest import config
from tempest.lib import decorators
from tempest.lib import exceptions as lib_exc
from tempest import test
from neutron.tests.tempest.api import base
from neutron.tests.tempest.common import tempest_fixtures as fixtures
@ -80,7 +80,7 @@ class BgpSpeakerTestJSONBase(base.BaseAdminNetworkTest):
@classmethod
def resource_setup(cls):
super(BgpSpeakerTestJSONBase, cls).resource_setup()
if not test.is_extension_enabled('bgp', 'network'):
if not utils.is_extension_enabled('bgp', 'network'):
msg = "BGP Speaker extension is not enabled."
raise cls.skipException(msg)

View File

@ -20,8 +20,8 @@ import time
import netaddr
from tempest.common import utils
from tempest import config
from tempest import test
from neutron.tests.tempest.api import base
from neutron_dynamic_routing.tests.tempest import bgp_client
@ -86,7 +86,7 @@ class BgpSpeakerScenarioTestJSONBase(base.BaseAdminNetworkTest):
@classmethod
def resource_setup(cls):
super(BgpSpeakerScenarioTestJSONBase, cls).resource_setup()
if not test.is_extension_enabled('bgp', 'network'):
if not utils.is_extension_enabled('bgp', 'network'):
msg = "BGP Speaker extension is not enabled."
raise cls.skipException(msg)