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.

Route RG06 through canonical registry

rcourtmanfedc77ef6287
diff --git a/internal/api/patrol_autonomy_colima_real_lab_test.go b/internal/api/patrol_autonomy_colima_real_lab_test.go
index 6a02f567f0..21272de965 100644
--- a/internal/api/patrol_autonomy_colima_real_lab_test.go
+++ b/internal/api/patrol_autonomy_colima_real_lab_test.go
@@ -194,7 +194,14 @@ reportReady:
if reportAt.IsZero() {
reportAt = time.Now().UTC()
}
- resource := unified.HostIngestRecord(host).Resource
+ record := unified.HostIngestRecord(host)
+ registry := unified.NewRegistry(nil)
+ registry.IngestRecords(unified.SourceAgent, []unified.IngestRecord{record})
+ canonicalResources := registry.List()
+ if len(canonicalResources) != 1 {
+ t.Fatalf("production host registry projected %d resources, want 1", len(canonicalResources))
+ }
+ resource := canonicalResources[0]
if _, ok := resourceCapabilityByName(resource.Capabilities, hostStorageCleanupCapability); !ok {
t.Fatalf("production host adapter did not advertise %q: %#v", hostStorageCleanupCapability, resource.Capabilities)
}