Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(tests): supply valid PBS datastore health fixture

pulse-triage[bot]35181d4c91c2
diff --git a/internal/monitoring/monitor_pbs_health_authority_test.go b/internal/monitoring/monitor_pbs_health_authority_test.go
index da9e26a717..0518dd5b2b 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: