From fedc77ef62877fdb1ca943bc86c8e5ae1f1edbe4 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sun, 12 Jul 2026 20:04:40 +0100 Subject: [PATCH] Route RG06 through canonical registry --- internal/api/patrol_autonomy_colima_real_lab_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/api/patrol_autonomy_colima_real_lab_test.go b/internal/api/patrol_autonomy_colima_real_lab_test.go index 6a02f567f..21272de96 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) }