From: Kefu Chai Date: Sat, 15 Feb 2020 10:41:16 +0000 (+0800) Subject: qa/tasks/mgr/orch: s/service ls/ps/ X-Git-Tag: v15.1.1~405^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9000afb24be25eaa581f52ca81a4756dee08f9bf;p=ceph.git qa/tasks/mgr/orch: s/service ls/ps/ to fix the broken test of "test_load_data". it's a regression introduced by aacc9a650f052fd5be543e9265ec94833b8e8bb3 Signed-off-by: Kefu Chai --- diff --git a/qa/tasks/mgr/test_orchestrator_cli.py b/qa/tasks/mgr/test_orchestrator_cli.py index dbbe3d199b7d..8faa40eb6d99 100644 --- a/qa/tasks/mgr/test_orchestrator_cli.py +++ b/qa/tasks/mgr/test_orchestrator_cli.py @@ -240,12 +240,12 @@ class TestOrchestratorCli(MgrTestCase): self.assertEqual(len(inventory_result), 1) self.assertEqual(inventory_result[0]['name'], 'host0') - out = self._orch_cmd('service', 'ls', '--format=json') + out = self._orch_cmd('ps', '--format=json') services = data['services'] services_result = json.loads(out) self.assertEqual(len(services), len(services_result)) - out = self._orch_cmd('service', 'ls', 'host0', '--format=json') + out = self._orch_cmd('ps', 'host0', '--format=json') services_result = json.loads(out) self.assertEqual(len(services_result), 1) self.assertEqual(services_result[0]['nodename'], 'host0')