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>
This commit is contained in:
Goutham Pacha Ravi 2023-01-25 11:04:54 -08:00
parent e4f923feb7
commit 54e31e8f5b
1 changed files with 2 additions and 1 deletions

View File

@ -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