Fix client initialization in the integration tests

Change-Id: I25865143325a238a85e5811f06503f4a43cc3bcb
This commit is contained in:
Anastasia Kuznetsova
2015-01-12 18:22:07 +04:00
parent 8b7f7467e6
commit 6051e45f55

View File

@@ -16,15 +16,21 @@ import os
from tempest import clients
from tempest.common import rest_client
from tempest import config
import testtools
from mistralclient.api import base
from mistralclient.api.v1 import client as mclient
CONF = config.CONF
class ClientAuth(rest_client.RestClient):
def __init__(self, auth_provider, url):
super(ClientAuth, self).__init__(auth_provider)
super(ClientAuth, self).__init__(
auth_provider=auth_provider,
service='workflow',
region=CONF.identity.region)
self.mistral_client = mclient.Client(
auth_token=self.auth_provider.get_token(),