Skip to content

Commit

Permalink
test: wip - working on updated services format
Browse files Browse the repository at this point in the history
  • Loading branch information
amunchet committed Oct 24, 2023
1 parent 2b7b9e1 commit 6b75eaa
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions backend/test/test_03_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down

0 comments on commit 6b75eaa

Please sign in to comment.