From 7c25dff64d3b45ebd68355c0df2683ddced933fa Mon Sep 17 00:00:00 2001 From: vryzhenkin Date: Wed, 25 Mar 2015 14:33:51 +0300 Subject: [PATCH] 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 --- murano/tests/functional/api/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/murano/tests/functional/api/base.py b/murano/tests/functional/api/base.py index 55ccbeffa..0eeb0bfd2 100644 --- a/murano/tests/functional/api/base.py +++ b/murano/tests/functional/api/base.py @@ -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)