Fixes test skips in 7c56035bb6

Tests should be skipped if configured microversion is less than 2.38.

Change-Id: I34149ff725f54288cbca0e01bec57673d865b18f
This commit is contained in:
Maurice Schreiber 2018-09-06 15:56:31 +02:00
parent 4c91b6e8da
commit d8039b8fc5
No known key found for this signature in database
GPG Key ID: D39C8CD40259CE1F
2 changed files with 2 additions and 2 deletions

View File

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

View File

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