Skip access metadata tests at unsupported versions
Recently share access metadata tests were added for
microversion 2.45 without the skips needed when they
are run on stable branches, where there is no support
for that microversion.
Add the needed skips.
Closes-Bug: #1783334
Change-Id: I26225a591d837350744bfc6ac04624456ee98a21
diff --git a/manila_tempest_tests/tests/api/test_access_rules_metadata_negative.py b/manila_tempest_tests/tests/api/test_access_rules_metadata_negative.py
index 75790ea..692159b 100644
--- a/manila_tempest_tests/tests/api/test_access_rules_metadata_negative.py
+++ b/manila_tempest_tests/tests/api/test_access_rules_metadata_negative.py
@@ -25,7 +25,8 @@
CONF = config.CONF
-@base.skip_if_microversion_lt(constants.MIN_SHARE_GROUP_MICROVERSION)
+@base.skip_if_microversion_lt(
+ constants.MIN_SHARE_ACCESS_METADATA_MICROVERSION)
@ddt.ddt
class AccessesMetadataNegativeTest(base.BaseSharesTest):
diff --git a/manila_tempest_tests/tests/api/test_rules.py b/manila_tempest_tests/tests/api/test_rules.py
index bb4bfd0..d16eaf1 100644
--- a/manila_tempest_tests/tests/api/test_rules.py
+++ b/manila_tempest_tests/tests/api/test_rules.py
@@ -491,6 +491,7 @@
@ddt.data(*set(
['1.0', '2.9', '2.27', '2.28', '2.45', LATEST_MICROVERSION]))
def test_list_access_rules(self, version):
+ self.skip_if_microversion_not_supported(version)
if (utils.is_microversion_lt(version, '2.13') and
CONF.share.enable_cephx_rules_for_protocols):
msg = ("API version %s does not support cephx access type, need "