From 570f18f4c85df3342861851b252022803ec9ed9a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 26 Dec 2019 16:00:47 +0800 Subject: [PATCH] qa: add "path" to "device" output schema "path" was added by 2c0fd7d86827aa76b8d923870018365cdae4a6ad, so update the test accordingly Signed-off-by: Kefu Chai --- qa/tasks/mgr/dashboard/test_host.py | 6 +++++- qa/tasks/mgr/dashboard/test_osd.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/qa/tasks/mgr/dashboard/test_host.py b/qa/tasks/mgr/dashboard/test_host.py index 158ef2125e507..bc133d1e2d3a9 100644 --- a/qa/tasks/mgr/dashboard/test_host.py +++ b/qa/tasks/mgr/dashboard/test_host.py @@ -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 + })) }))) diff --git a/qa/tasks/mgr/dashboard/test_osd.py b/qa/tasks/mgr/dashboard/test_osd.py index 4ada5e5d115fb..a51b741cf27d7 100644 --- a/qa/tasks/mgr/dashboard/test_osd.py +++ b/qa/tasks/mgr/dashboard/test_osd.py @@ -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 + })) }))) -- 2.39.5