Provide Identity version for negative tests

This patch fixes broken DSVM gate after a change in tempest
cred_provider.

Change-Id: I9453d74fa68a7ef57389e5d2dbc6d60aba66f213
Closes-Bug: #1436288
This commit is contained in:
vryzhenkin 2015-03-25 14:33:51 +03:00
parent 4e54b4ef4c
commit 7c25dff64d
1 changed files with 3 additions and 1 deletions

View File

@ -313,6 +313,7 @@ class MuranoClient(rest_client.RestClient):
class TestCase(test.BaseTestCase):
@classmethod
def setUpClass(cls):
super(TestCase, cls).setUpClass()
@ -390,7 +391,8 @@ class NegativeTestCase(TestCase):
# If no credentials are provided, the Manager will use those
# in CONF.identity and generate an auth_provider from them
cls.isolated_creds = isolated_creds.IsolatedCreds(cls.__name__)
cls.isolated_creds = isolated_creds.IsolatedCreds('v2',
name=cls.__name__)
creds = cls.isolated_creds.get_alt_creds()
mgr = clients.Manager(credentials=creds)
cls.alt_client = MuranoClient(mgr.auth_provider)