]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/mgr/test_orchestrator_cli: support multiple DriveGroups
authorKiefer Chang <kiefer.chang@suse.com>
Tue, 4 Feb 2020 06:27:17 +0000 (14:27 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Tue, 4 Feb 2020 06:31:21 +0000 (14:31 +0800)
create_osds interface in Orchestrator supports multiple named DriveGroups
since https://github.com/ceph/ceph/pull/32972. Adapt the changes in
the test.

Fixes: https://tracker.ceph.com/issues/43945
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
qa/tasks/mgr/test_orchestrator_cli.py

index 80378f766979ac12d10c22ddeee3dbb5d625b5e1..7575126c17087130e246829769fd9bfbd4f9f6b0 100644 (file)
@@ -85,12 +85,14 @@ class TestOrchestratorCli(MgrTestCase):
         self._orch_cmd("osd", "create", "*:device")
         self._orch_cmd("osd", "create", "*:device,device2")
 
-        drive_group = {
-            "host_pattern": "*",
-            "data_devices": {"paths": ["/dev/sda"]}
+        drive_groups = {
+            'test': {
+                "host_pattern": "*",
+                "data_devices": {"paths": ["/dev/sda"]}
+            }
         }
 
-        res = self._orch_cmd_result("osd", "create", "-i", "-", stdin=json.dumps(drive_group))
+        res = self._orch_cmd_result("osd", "create", "-i", "-", stdin=json.dumps(drive_groups))
         self.assertEqual(res, 0)
 
         with self.assertRaises(CommandFailedError):