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:
parent
4e54b4ef4c
commit
7c25dff64d
@ -313,6 +313,7 @@ class MuranoClient(rest_client.RestClient):
|
|||||||
|
|
||||||
|
|
||||||
class TestCase(test.BaseTestCase):
|
class TestCase(test.BaseTestCase):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
super(TestCase, cls).setUpClass()
|
super(TestCase, cls).setUpClass()
|
||||||
@ -390,7 +391,8 @@ class NegativeTestCase(TestCase):
|
|||||||
|
|
||||||
# If no credentials are provided, the Manager will use those
|
# If no credentials are provided, the Manager will use those
|
||||||
# in CONF.identity and generate an auth_provider from them
|
# 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()
|
creds = cls.isolated_creds.get_alt_creds()
|
||||||
mgr = clients.Manager(credentials=creds)
|
mgr = clients.Manager(credentials=creds)
|
||||||
cls.alt_client = MuranoClient(mgr.auth_provider)
|
cls.alt_client = MuranoClient(mgr.auth_provider)
|
||||||
|
Loading…
Reference in New Issue
Block a user