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 <gouthampravi@gmail.com>
diff --git a/manila_tempest_tests/tests/api/test_replication_negative.py b/manila_tempest_tests/tests/api/test_replication_negative.py
index 83ca1fd..9424a08 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 @@
@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