Fix issue with tempest tests

Change-Id: I20cce5910c4b166531267ce4014dfadbb83cc31c
This commit is contained in:
Sergey Murashov 2014-05-12 11:09:01 +04:00
parent 1984b3ea54
commit 0847ca4766
1 changed files with 5 additions and 8 deletions

View File

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