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
This commit is contained in:
Mark Sturdevant 2015-06-10 09:52:07 -07:00
parent d1bf842f0f
commit dc5f4ab2a0
1 changed files with 1 additions and 1 deletions

View File

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