]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add "path" to "device" output schema 32427/head
authorKefu Chai <kchai@redhat.com>
Thu, 26 Dec 2019 08:00:47 +0000 (16:00 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 26 Dec 2019 16:25:51 +0000 (00:25 +0800)
"path" was added by 2c0fd7d86827aa76b8d923870018365cdae4a6ad, so update
the test accordingly

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/mgr/dashboard/test_host.py
qa/tasks/mgr/dashboard/test_osd.py

index 158ef2125e507bf527eafb9957530c92c69f4ebc..bc133d1e2d3a99eb64c76fb57dfff2f37d4c672d 100644 (file)
@@ -83,5 +83,9 @@ class HostControllerTest(DashboardTestCase):
         self.assertSchema(data, JList(JObj({
             'daemons': JList(str),
             'devid': str,
-            'location': JList(JObj({'host': str, 'dev': str}))
+            'location': JList(JObj({
+                'host': str,
+                'dev': str,
+                'path': str
+            }))
         })))
index 4ada5e5d115fb0ba48119ec473fdc7943135428e..a51b741cf27d7713dbdf18f0235f85a2416709e3 100644 (file)
@@ -140,7 +140,11 @@ class OsdTest(DashboardTestCase):
         self.assertSchema(data, JList(JObj({
             'daemons': JList(str),
             'devid': str,
-            'location': JList(JObj({'host': str, 'dev': str}))
+            'location': JList(JObj({
+                'host': str,
+                'dev': str,
+                'path': str
+            }))
         })))