| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
from unittest import mock |
| 17 |
|
| 18 |
from mistralclient.api.v2 import client |
| 19 |
from mistralclient.tests.unit import base |
| 20 |
|
| 21 |
|
| 22 |
class BaseClientV2Test(base.BaseClientTest): |
| 23 |
|
| 24 |
TEST_URL = 'http://mistral.example.com' |
| 25 |
|
| 26 |
def setUp(self): |
| 27 |
super(BaseClientV2Test, self).setUp() |
| 28 |
|
| 29 |
with mock.patch( |
| 30 |
'mistralclient.auth.keystone.KeystoneAuthHandler.authenticate', |
| 31 |
return_value={'session': None}): |
| 32 |
self._client = client.Client(project_name="test", |
| 33 |
mistral_url=self.TEST_URL) |
| 34 |
self.workbooks = self._client.workbooks |
| 35 |
self.executions = self._client.executions |
| 36 |
self.tasks = self._client.tasks |
| 37 |
self.workflows = self._client.workflows |
| 38 |
self.environments = self._client.environments |
| 39 |
self.action_executions = self._client.action_executions |
| 40 |
self.actions = self._client.actions |
| 41 |
self.members = self._client.members |