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.

Supply ordinary node discovery in the cleanup regression fixture

pulse-triage[bot]b77a0c3ea3f8
diff --git a/internal/monitoring/guest_metadata_cleanup_regression_test.go b/internal/monitoring/guest_metadata_cleanup_regression_test.go
index daf93d2457..df27fbd86c 100644
--- a/internal/monitoring/guest_metadata_cleanup_regression_test.go
+++ b/internal/monitoring/guest_metadata_cleanup_regression_test.go
@@ -31,6 +31,8 @@ func TestGuestMetadataCleanupSuppressionContract(t *testing.T) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
switch {
+ case strings.HasSuffix(r.URL.Path, "/nodes"):
+ fmt.Fprint(w, `{"data":[]}`)
case strings.HasSuffix(r.URL.Path, "/config"):
fmt.Fprint(w, `{"data":{}}`)
case strings.HasSuffix(r.URL.Path, "/status/current"):