diff options
author | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-07-06 09:57:18 +0800 |
---|---|---|
committer | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-07-27 10:08:49 +0800 |
commit | 85bee51d0cef5a03097072c7a3f776623dbf3337 (patch) | |
tree | f70b845cf04c5de993971682ee2e6b1412143a93 /tests/os_clients.py | |
parent | 3e0300e8f9695348aa4564f87a23ac3c0cf737ff (diff) |
refactor congress inspector
JIRA: DOCTOR-98
Change-Id: I22fa893a1c1973fc63f994b630dd0c6a2c30e641
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/os_clients.py')
-rw-r--r-- | tests/os_clients.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/os_clients.py b/tests/os_clients.py index 2699930f..44fa3aad 100644 --- a/tests/os_clients.py +++ b/tests/os_clients.py @@ -9,6 +9,7 @@ from oslo_config import cfg
import aodhclient.client as aodhclient
+from congressclient.v1 import client as congressclient
import glanceclient.client as glanceclient
from keystoneclient.v2_0 import client as ks_client
from neutronclient.v2_0 import client as neutronclient
@@ -42,3 +43,8 @@ def neutron_client(session): def aodh_client(version, session):
return aodhclient.Client(version, session=session)
+
+
+def congress_client(session):
+ return congressclient.Client(session=session,
+ service_type='policy')
|