Replace usage of deprecated path for test decorators

These decorators were moved to the common module in tempest 17.0.0[1].

[1] cd36841ca25b39b9c8ad1b83e0abd0a191d538a0

Change-Id: Ic7a8ac8e98f4b56b2ae2b76071c6dc64c0f34066
This commit is contained in:
Takashi Kajinami 2024-02-09 13:06:38 +09:00
parent ff96cdecac
commit 815b0d26b4

View File

@ -14,10 +14,10 @@
# under the License. # under the License.
from neutron_lib.db import constants as db_const from neutron_lib.db import constants as db_const
from tempest.common import utils
from tempest.lib.common.utils import data_utils from tempest.lib.common.utils import data_utils
from tempest.lib import decorators from tempest.lib import decorators
from tempest.lib import exceptions as lib_exc from tempest.lib import exceptions as lib_exc
from tempest import test
from neutron_tempest_plugin import config from neutron_tempest_plugin import config
from neutron_tempest_plugin.vpnaas.api import base_vpnaas as base from neutron_tempest_plugin.vpnaas.api import base_vpnaas as base
@ -42,7 +42,7 @@ class VPNaaSTestJSON(base.BaseAdminNetworkTest):
@classmethod @classmethod
def resource_setup(cls): def resource_setup(cls):
if not test.is_extension_enabled('vpnaas', 'network'): if not utils.is_extension_enabled('vpnaas', 'network'):
msg = "vpnaas extension not enabled." msg = "vpnaas extension not enabled."
raise cls.skipException(msg) raise cls.skipException(msg)
super(VPNaaSTestJSON, cls).resource_setup() super(VPNaaSTestJSON, cls).resource_setup()