mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-08-31 02:14:29 +00:00
Route RG06 through canonical registry
This commit is contained in:
parent
06dcd59121
commit
fedc77ef62
1 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue