From 72c3228a39ae4b6de1ece2a6bab5ec4f8829ddc8 Mon Sep 17 00:00:00 2001 From: lkuchlan Date: Wed, 8 Feb 2023 10:25:10 +0200 Subject: [PATCH] [RBAC] Add skip condition for share manage In case a backend doesn't support this feature the tests will fail. Change-Id: I69fd7a3747986ce287c3a59cdc0f374fdd5b0099 --- manila_tempest_tests/tests/rbac/test_share_manage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manila_tempest_tests/tests/rbac/test_share_manage.py b/manila_tempest_tests/tests/rbac/test_share_manage.py index 61277558..272ec66f 100644 --- a/manila_tempest_tests/tests/rbac/test_share_manage.py +++ b/manila_tempest_tests/tests/rbac/test_share_manage.py @@ -34,6 +34,8 @@ class ShareRbacManageShareTests(rbac_base.ShareRbacBaseTests, @classmethod def skip_checks(cls): super(ShareRbacManageShareTests, cls).skip_checks() + if not CONF.share.run_manage_unmanage_tests: + raise cls.skipException('Manage/unmanage tests are disabled.') if cls.protocol not in CONF.share.enable_protocols: message = "%s tests are disabled" % cls.protocol raise cls.skipException(message)