Pass creds into the clients.Manager() in functional tests

Because of some changes in tempest now it is nesessary to
set credentials to the client.Manager()

Change-Id: I37e95118064317797dc3277ce79b195a8ebd328b
This commit is contained in:
Anastasia Kuznetsova 2015-11-19 12:48:20 +03:00
parent f1996ff17f
commit c11ef5c435

View File

@ -20,6 +20,7 @@ import mock
import six import six
from tempest import clients from tempest import clients
from tempest.common import credentials_factory as creds
from tempest import config from tempest import config
from tempest import test as test from tempest import test as test
from tempest_lib import auth from tempest_lib import auth
@ -248,7 +249,10 @@ class TestCase(test.BaseTestCase):
cls.mgr = mock.MagicMock() cls.mgr = mock.MagicMock()
cls.mgr.auth_provider = AuthProv() cls.mgr.auth_provider = AuthProv()
else: else:
cls.mgr = clients.Manager() cls.creds = creds.get_configured_credentials(
credential_type='user'
)
cls.mgr = clients.Manager(cls.creds)
if cls._service == 'workflowv2': if cls._service == 'workflowv2':
cls.client = MistralClientV2( cls.client = MistralClientV2(