[SMOKE] ignore internal containers in down count

This commit is contained in:
architect committed 2026-12-02 20:48:19 +03:00
1 parent 7b98ba3dd7
commit 690ebe3376
4 files changed
+92 -1

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ def check_core():
try:
d = get(HUB + "/status.json", 30)
total = len(d.get("services") or [])
down = len([s for s in (d.get("services") or []) if not s.get("up")])
down = len([s for s in (d.get("services") or []) if not s.get("up") and not s.get("internal")])
if total >= 70 and down <= 3:
ok("службы", "%d всего, лежит %d" % (total, down))
else: