Route RG06 through canonical registry

This commit is contained in:
rcourtman 2026-07-12 20:04:40 +01:00
parent 06dcd59121
commit fedc77ef62

View file

@ -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)
}