From 0847ca4766e10416c4e488fc3ee2428ae4fb1973 Mon Sep 17 00:00:00 2001 From: Sergey Murashov Date: Mon, 12 May 2014 11:09:01 +0400 Subject: [PATCH] Fix issue with tempest tests Change-Id: I20cce5910c4b166531267ce4014dfadbb83cc31c --- functionaltests/api/base.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/functionaltests/api/base.py b/functionaltests/api/base.py index 8b286244..c1fc346e 100644 --- a/functionaltests/api/base.py +++ b/functionaltests/api/base.py @@ -79,15 +79,12 @@ class TestCase(testtools.TestCase): """ super(TestCase, cls).setUpClass() - username = CONF.identity.username - password = CONF.identity.password - tenant_name = CONF.identity.tenant_name + mgr = clients.Manager() + cls.client = MistralClient(mgr.auth_provider) - mgr = clients.Manager(username, password, tenant_name) - auth_provider = mgr.get_auth_provider(mgr.get_default_credentials()) - - cls.client = MistralClient(auth_provider) - cls.obj = [] + def setUp(self): + super(TestCase, self).setUp() + self.obj = [] def tearDown(self): super(TestCase, self).tearDown()