From 6b75eaae746712cefeaee15c3b622194bef79324 Mon Sep 17 00:00:00 2001 From: Chester Enright Date: Tue, 24 Oct 2023 17:49:50 -0500 Subject: [PATCH] test: wip - working on updated services format --- backend/test/test_03_serve.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/backend/test/test_03_serve.py b/backend/test/test_03_serve.py index c0fe27a..57bef3d 100644 --- a/backend/test/test_03_serve.py +++ b/backend/test/test_03_serve.py @@ -692,9 +692,20 @@ def test_list_dashboard(setup): "host": "test", "icon": "linux", "services": [ - {"name": "open_ports", "state": False}, - {"name": "closed_ports", "state": False}, - {"name": "check_hd-1", "state": False}, + {"found_service": "open_ports", "name" : "open_ports", "state": False, "latest_metric" : None}, + {"name": "closed_ports", "state": False, "name" : "closed_ports", "latest_metric" : None}, + {"name": "check_hd-1", "state": False, "latest_metric" : None, "found_service" : { + "_id" : "None", + "comparison" : "greater", + "display_name" : "check_hd-1", + "field" : "read_time", + "metric" : "diskio", + "name" : "check_hd", + "tag_name" : "cpu", + "tag_value" : "cpu-all", + "type" : "check", + "value" : 300 + }}, ], "class": "health", }