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 store-backed presentation in the attribution fixture

pulse-triage[bot]31c842216237
diff --git a/internal/monitoring/monitor_cross_installation_identity_test.go b/internal/monitoring/monitor_cross_installation_identity_test.go
index 5b84c0a9c5..29135d306c 100644
--- a/internal/monitoring/monitor_cross_installation_identity_test.go
+++ b/internal/monitoring/monitor_cross_installation_identity_test.go
@@ -41,7 +41,10 @@ func TestCrossInstallationIdentitySurvivesStandaloneAddition(t *testing.T) {
m.config = &config.Config{PVEInstances: []config.PVEInstance{
{Name: "Home", Host: "https://home.example:8006", IsCluster: classified, ClusterName: clusterName, ClusterEndpoints: []config.ClusterEndpoint{{NodeName: "pmx1", Host: "https://pmx1:8006"}}},
}}
- adapter := unifiedresources.NewMonitorAdapter(unifiedresources.NewRegistry(nil))
+ // Presentation coalescing intentionally declines a store-free
+ // registry: it cannot carry the operator's merge decisions. Exercise
+ // the production store-backed path, without persistent native state.
+ adapter := unifiedresources.NewMonitorAdapter(unifiedresources.NewRegistry(unifiedresources.NewMemoryStore()))
m.SetResourceStore(adapter)
now := time.Now().UTC()
backupAt := now.Add(-time.Hour)