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
This commit is contained in:
pulse-triage[bot]
2026-09-06 14:12:46 +01:00
parent cd12b62bae
commit 35181d4c91
@@ -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: