From d8039b8fc5ef6d7a486458dd9411c3be598804ad Mon Sep 17 00:00:00 2001 From: Maurice Schreiber Date: Thu, 6 Sep 2018 15:56:31 +0200 Subject: [PATCH] Fixes test skips in 7c56035bb68d16b52b73de17b61c3bb08e18fe82 Tests should be skipped if configured microversion is less than 2.38. Change-Id: I34149ff725f54288cbca0e01bec57673d865b18f --- manila_tempest_tests/tests/api/test_rules_negative.py | 2 +- manila_tempest_tests/tests/api/test_snapshot_rules_negative.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manila_tempest_tests/tests/api/test_rules_negative.py b/manila_tempest_tests/tests/api/test_rules_negative.py index 785256f9..6dfc8da8 100644 --- a/manila_tempest_tests/tests/api/test_rules_negative.py +++ b/manila_tempest_tests/tests/api/test_rules_negative.py @@ -133,7 +133,7 @@ class ShareIpRulesForNFSNegativeTest(base.BaseSharesMixedTest): def test_create_duplicate_single_host_rules(self, access_to): """Test rules for individual clients with and without max-prefix.""" if ':' in access_to and utils.is_microversion_lt( - '2.38', CONF.share.max_api_microversion): + CONF.share.max_api_microversion, '2.38'): reason = ("Skipped. IPv6 rules are accepted from and beyond " "API version 2.38, the configured maximum API version " "is %s" % CONF.share.max_api_microversion) diff --git a/manila_tempest_tests/tests/api/test_snapshot_rules_negative.py b/manila_tempest_tests/tests/api/test_snapshot_rules_negative.py index 2e3e89c2..f4f88a92 100644 --- a/manila_tempest_tests/tests/api/test_snapshot_rules_negative.py +++ b/manila_tempest_tests/tests/api/test_snapshot_rules_negative.py @@ -71,7 +71,7 @@ class SnapshotIpRulesForNFSNegativeTest( def _test_duplicate_rules(self, access_to): if ':' in access_to and utils.is_microversion_lt( - '2.38', CONF.share.max_api_microversion): + CONF.share.max_api_microversion, '2.38'): reason = ("Skipped. IPv6 rules are accepted from and beyond " "API version 2.38, the configured maximum API version " "is %s" % CONF.share.max_api_microversion)