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.

Exercise the production guest JSON projection in the control

pulse-triage[bot]9e49fb6bf8ad
diff --git a/internal/monitoring/guest_agent_optional_read_integration_test.go b/internal/monitoring/guest_agent_optional_read_integration_test.go
index 38916118f8..e6a5bf8692 100644
--- a/internal/monitoring/guest_agent_optional_read_integration_test.go
+++ b/internal/monitoring/guest_agent_optional_read_integration_test.go
@@ -135,7 +135,7 @@ func testGuestAgentOptionalReadOrdering(t *testing.T, withoutStatus bool) {
if view.ID() != id || view.DiskUsed() != vm.Disk.Used || view.DiskStatusReason() != vm.DiskStatusReason {
t.Fatal("filesystem observation changed at the read boundary")
}
- encoded, err := json.Marshal(registry.GetAll())
+ encoded, err := json.Marshal(m.buildBroadcastFrontendStateFromSnapshot(models.StateSnapshot{VMs: []models.VM{vm}}).Resources)
if err != nil || !strings.Contains(string(encoded), id) {
t.Fatal("guest identity missing from JSON read projection")
}