From 403f1195b03dda5b8312ed3725ad359558543a56 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 8 Aug 2019 11:21:42 -0500 Subject: [PATCH] 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 --- qa/tasks/mgr/dashboard/test_health.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qa/tasks/mgr/dashboard/test_health.py b/qa/tasks/mgr/dashboard/test_health.py index 62b86443697..48dd19b24b1 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)), -- 2.39.5