Merge "Fix compute_unified decoration"
diff --git a/tempest/scenario/test_compute_unified_limits.py b/tempest/scenario/test_compute_unified_limits.py
index bacf526..eda6d6f 100644
--- a/tempest/scenario/test_compute_unified_limits.py
+++ b/tempest/scenario/test_compute_unified_limits.py
@@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
-import testtools
-
from tempest.common import utils
from tempest.common import waiters
from tempest import config
@@ -25,8 +23,6 @@
CONF = config.CONF
-@testtools.skipUnless(CONF.compute_feature_enabled.unified_limits,
- 'Compute unified limits are not enabled')
class ComputeProjectQuotaTest(manager.ScenarioTest):
"""The test base class for compute unified limits tests.
@@ -41,6 +37,12 @@
force_tenant_isolation = True
@classmethod
+ def skip_checks(cls):
+ super(ComputeProjectQuotaTest, cls).skip_checks()
+ if not CONF.compute_feature_enabled.unified_limits:
+ raise cls.skipException('Compute unified limits are not enabled.')
+
+ @classmethod
def resource_setup(cls):
super(ComputeProjectQuotaTest, cls).resource_setup()
@@ -67,8 +69,6 @@
self.limit_ids[name], value)
-@testtools.skipUnless(CONF.compute_feature_enabled.unified_limits,
- 'Compute unified limits are not enabled')
class ServersQuotaTest(ComputeProjectQuotaTest):
@classmethod