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'):