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.

Use the existing host-state API in the memory isolation control

pulse-triage[bot]7c9c378e786a
diff --git a/internal/monitoring/monitor_host_agents_test.go b/internal/monitoring/monitor_host_agents_test.go
index 5b13f45ced..72925c75b7 100644
--- a/internal/monitoring/monitor_host_agents_test.go
+++ b/internal/monitoring/monitor_host_agents_test.go
@@ -8467,7 +8467,7 @@ func TestRetiredQGAMemoryCannotAlterIndependentAgentEvidence(t *testing.T) {
guestMemoryCacheKey("site/other", "node", 105): entry,
guestMemoryCacheKey("site-other", "node", 105): entry,
}}
- m.state.UpdateHosts([]models.Host{host})
+ m.state.UpsertHost(host)
m.retirePVEInstanceRuntime(instance)
if len(m.vmAgentMemCache) != 2 || m.vmAgentMemCache[guestMemoryCacheKey("site/other", "node", 105)] != entry || m.vmAgentMemCache[guestMemoryCacheKey("site-other", "node", 105)] != entry {
t.Error("connection retirement retained its own QGA memory or erased a different connection")