From ca6190c3a1d2eeec22450dc2c67bc67b63705258 Mon Sep 17 00:00:00 2001 From: licanwei Date: Thu, 24 Jan 2019 15:26:43 +0800 Subject: [PATCH] Use openstack common CLI Change-Id: Ia013cafe7dfa3a54c86ff44e57f98d64b15b6a86 --- watcherclient/tests/functional/v1/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/watcherclient/tests/functional/v1/base.py b/watcherclient/tests/functional/v1/base.py index 53f521f..84a04cf 100644 --- a/watcherclient/tests/functional/v1/base.py +++ b/watcherclient/tests/functional/v1/base.py @@ -69,8 +69,9 @@ class TestCase(testtools.TestCase): @classmethod def watcher(cls, cmd, fail_ok=False): """Executes watcherclient command for the given action.""" - return execute('watcher --os-infra-optim-api-version {0} {1}'.format( - cls.api_version, cmd), fail_ok=fail_ok) + return execute( + 'openstack optimize --os-infra-optim-api-version {0} {1}'.format( + cls.api_version, cmd), fail_ok=fail_ok) @classmethod def get_opts(cls, fields, format='value'):