diff --git a/manila_tempest_tests/tests/api/base.py b/manila_tempest_tests/tests/api/base.py index dcf0bed396..5810a7ebbd 100644 --- a/manila_tempest_tests/tests/api/base.py +++ b/manila_tempest_tests/tests/api/base.py @@ -220,6 +220,12 @@ class BaseSharesTest(test.BaseTestCase): cls.method_resources.insert(0, resource) return client + @classmethod + def skip_checks(cls): + super(BaseSharesTest, cls).skip_checks() + if not CONF.service_available.manila: + raise cls.skipException("Manila support is required") + @classmethod def verify_nonempty(cls, *args): if not all(args): diff --git a/manila_tempest_tests/tests/scenario/manager_share.py b/manila_tempest_tests/tests/scenario/manager_share.py index 01be41271a..e0197331d6 100644 --- a/manila_tempest_tests/tests/scenario/manager_share.py +++ b/manila_tempest_tests/tests/scenario/manager_share.py @@ -50,6 +50,12 @@ class ShareScenarioTest(manager.NetworkScenarioTest): cls.shares_admin_v2_client = shares_v2_client.SharesV2Client( cls.os_admin.auth_provider) + @classmethod + def skip_checks(cls): + super(ShareScenarioTest, cls).skip_checks() + if not CONF.service_available.manila: + raise cls.skipException("Manila support is required") + def _create_share(self, share_protocol=None, size=None, name=None, snapshot_id=None, description=None, metadata=None, share_network_id=None, share_type_id=None,