From e26a1cdee84ab6091801d815f78420e2d27f7fa6 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 4 Mar 2020 00:24:08 +0800 Subject: [PATCH] qa/tasks/test_orchestrator_cli: enable test_osd_create exception check this reverts 9639acfefe09c87adc821bb5c5cc41974685331d, as the test does make sense. what fails this test is the machinary to marshal/unmarshal exception fails to handle un-picklable exceptions. the previous commit is supposed to use a fallback to handle them. Signed-off-by: Kefu Chai --- qa/tasks/mgr/test_orchestrator_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/mgr/test_orchestrator_cli.py b/qa/tasks/mgr/test_orchestrator_cli.py index c4e2bdc5bc1..94d87299815 100644 --- a/qa/tasks/mgr/test_orchestrator_cli.py +++ b/qa/tasks/mgr/test_orchestrator_cli.py @@ -95,8 +95,8 @@ class TestOrchestratorCli(MgrTestCase): res = self._orch_cmd_result("osd", "create", "-i", "-", stdin=json.dumps(drive_groups)) self.assertEqual(res, 0) - #with self.assertRaises(Exception): - # self._orch_cmd("osd", "create", "notfound:device") + with self.assertRaises(Exception): + self._orch_cmd("osd", "create", "notfound:device") def test_blink_device_light(self): def _ls_lights(what): -- 2.39.5