From dc5f4ab2a08527c1c38cd3b654faabe1b9d92d81 Mon Sep 17 00:00:00 2001 From: Mark Sturdevant Date: Wed, 10 Jun 2015 09:52:07 -0700 Subject: [PATCH] Fix tempest ShareUserRules* tests Fix handling of return value from create_share in resource_setup. These test classes (part of 'test_rules') are not currently used in CI and are not runnable because the resource_setup is still expecting a tuple to be returned from create_share, but that method no longer returns a tuple. This fix makes the following tests runnable: - test_create_delete_user_rule - test_create_delete_ro_access_rule Change-Id: Ia4324e2bc9ea4cf80ed61e7c23110e9f4068a59b --- contrib/tempest/tempest/api/share/test_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/tempest/tempest/api/share/test_rules.py b/contrib/tempest/tempest/api/share/test_rules.py index 79805d4888..4bfc7fa1bc 100644 --- a/contrib/tempest/tempest/api/share/test_rules.py +++ b/contrib/tempest/tempest/api/share/test_rules.py @@ -112,7 +112,7 @@ class ShareUserRulesForNFSTest(base.BaseSharesTest): CONF.share.enable_user_rules_for_protocols): msg = "USER rule tests for %s protocol are disabled" % cls.protocol raise cls.skipException(msg) - __, cls.share = cls.create_share(cls.protocol) + cls.share = cls.create_share(cls.protocol) cls.access_type = "user" cls.access_to = CONF.share.username_for_user_rules