From 54e31e8f5b517d2f1b350c091b29aa518f2c8739 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Wed, 25 Jan 2023 11:04:54 -0800 Subject: [PATCH] Skip replication test if microversion is not supported Without the skip, we break testing against old/stable branches. Change-Id: Ia679ab28d9fd9d79294e990c39cd4cd9631f1742 Signed-off-by: Goutham Pacha Ravi --- manila_tempest_tests/tests/api/test_replication_negative.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manila_tempest_tests/tests/api/test_replication_negative.py b/manila_tempest_tests/tests/api/test_replication_negative.py index 83ca1fda..9424a089 100644 --- a/manila_tempest_tests/tests/api/test_replication_negative.py +++ b/manila_tempest_tests/tests/api/test_replication_negative.py @@ -193,7 +193,8 @@ class ReplicationNegativeTest(ReplicationNegativeBase): @tc.attr(base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND) @ddt.data('2.11', '2.73') def test_add_access_rule_share_replica_error_status(self, version): - '''From 2.74, we can add rules even if replicas are in error state.''' + """From 2.74, we can add rules even if replicas are in error state.""" + utils.check_skip_if_microversion_not_supported(version) access_type, access_to = utils.get_access_rule_data_from_config( self.shares_v2_client.share_protocol) # Create the replica