From 35181d4c91c268ef3e95ad3f65411fa13d126337 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Sun, 6 Sep 2026 14:12:46 +0100 Subject: [PATCH] fix(tests): supply valid PBS datastore health fixture The advanced proposal's complete backend shard exposed a shared PBS fixture that returned an array from the datastore-status endpoint. Supply the healthy datastore observation those node-metric lifecycle tests intend, preventing the live datastore evaluator from fabricating an unrelated connectivity incident. Change-source: pulse-maintainer --- internal/monitoring/monitor_pbs_health_authority_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/internal/monitoring/monitor_pbs_health_authority_test.go b/internal/monitoring/monitor_pbs_health_authority_test.go index da9e26a71..0518dd5b2 100644 --- a/internal/monitoring/monitor_pbs_health_authority_test.go +++ b/internal/monitoring/monitor_pbs_health_authority_test.go @@ -127,6 +127,15 @@ func newPBSHealthTestServer(t *testing.T) *pbsHealthTestServer { "avail": 750, }}, }) + case "/api2/json/admin/datastore/backups/status": + _ = json.NewEncoder(w).Encode(map[string]any{ + "data": map[string]any{ + "status": "available", + "total": 1000, + "used": 250, + "avail": 750, + }, + }) case "/api2/json/admin/datastore/backups/namespace": _ = json.NewEncoder(w).Encode(map[string]any{"data": []any{}}) default: