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.

Keep OS-info suppression fixtures distinct from access refusals

pulse-triage[bot]5b2a05be3b5e
diff --git a/internal/monitoring/guest_metadata_suppression_test.go b/internal/monitoring/guest_metadata_suppression_test.go
index 7ed984cef6..701dc5e2b7 100644
--- a/internal/monitoring/guest_metadata_suppression_test.go
+++ b/internal/monitoring/guest_metadata_suppression_test.go
@@ -187,8 +187,11 @@ func TestGuestMetadataOSInfoSuppressionHTTPPollLifecycle(t *testing.T) {
w.WriteHeader(http.StatusInternalServerError)
fmt.Fprint(w, `{"data":null,"message":"VM 105 qmp command 'guest-get-osinfo' failed - guest agent command failed: Failed to open file '/etc/os-release': No such file or directory"}`)
} else {
- w.WriteHeader(http.StatusForbidden)
- fmt.Fprint(w, `{"data":null,"message":"permission denied"}`)
+ // A permission refusal did not exercise OS-info and
+ // belongs to the rejection/recovery contract. Keep
+ // this fixture on the other completed-error path.
+ w.WriteHeader(http.StatusBadRequest)
+ fmt.Fprint(w, `{"data":null,"message":"OS info request failed"}`)
}
case strings.HasSuffix(r.URL.Path, "/info"):
versionCalls.Add(1)