From 4260d21b8f000b50535ab3bc513fad6f3648c071 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Sun, 30 Jun 2019 15:50:37 +0000 Subject: [PATCH] Ping api version for fullstack test Change-Id: Iee1a3b6b90366e85c4b160391106eedae89a0814 --- zun/tests/fullstack/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zun/tests/fullstack/utils.py b/zun/tests/fullstack/utils.py index 4ce049e94..36fd7f5e6 100644 --- a/zun/tests/fullstack/utils.py +++ b/zun/tests/fullstack/utils.py @@ -19,6 +19,9 @@ import os_client_config from zunclient import client +ZUN_API_VERSION = '1.30' + + def get_zun_client_from_env(): # We should catch KeyError exception with the purpose of # source or configure openrc file. @@ -43,7 +46,7 @@ def get_zun_client_from_env(): user_domain_id=user_domain_id, user_domain_name=user_domain_name) session = ks.Session(auth=auth) - return client.Client('1.latest', session=session) + return client.Client(ZUN_API_VERSION, session=session) def _get_cloud_config_auth_data(cloud='devstack-admin'): @@ -63,7 +66,7 @@ def _get_cloud_config_auth_data(cloud='devstack-admin'): def get_zun_client_from_creds(): auth_plugin, session = _get_cloud_config_auth_data() - return client.Client('1.latest', session=session, auth=auth_plugin) + return client.Client(ZUN_API_VERSION, session=session, auth=auth_plugin) def wait_for_condition(condition, interval=2, timeout=60):