From: Sage Weil Date: Thu, 8 Aug 2019 16:21:42 +0000 (-0500) Subject: qa/tasks/mgr/dashboard/test_health: update schema X-Git-Tag: v15.1.0~1877^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F29422%2Fhead;p=ceph.git qa/tasks/mgr/dashboard/test_health: update schema Also fix the 'checks' field, which is a list of objects, not strings. (The test doesn't notice because it's empty.) Signed-off-by: Sage Weil --- diff --git a/qa/tasks/mgr/dashboard/test_health.py b/qa/tasks/mgr/dashboard/test_health.py index 62b864436974..48dd19b24b1f 100644 --- a/qa/tasks/mgr/dashboard/test_health.py +++ b/qa/tasks/mgr/dashboard/test_health.py @@ -54,7 +54,8 @@ class HealthTest(DashboardTestCase): 'standbys': JList(JObj({})), }), 'health': JObj({ - 'checks': JList(str), + 'checks': JList(JObj({}, allow_unknown=True)), + 'mutes': JList(JObj({}, allow_unknown=True)), 'status': str, }), 'hosts': int, @@ -187,7 +188,8 @@ class HealthTest(DashboardTestCase): 'standbys': JList(JObj({}, allow_unknown=True)), }), 'health': JObj({ - 'checks': JList(str), + 'checks': JList(JObj({}, allow_unknown=True)), + 'mutes': JList(JObj({}, allow_unknown=True)), 'status': str, }), 'hosts': int, @@ -284,7 +286,8 @@ class HealthTest(DashboardTestCase): 'client_perf': JObj({}, allow_unknown=True), 'df': JObj({}, allow_unknown=True), 'health': JObj({ - 'checks': JList(str), + 'checks': JList(JObj({}, allow_unknown=True)), + 'mutes': JList(JObj({}, allow_unknown=True)), 'status': str }), 'pools': JList(JLeaf(dict)),