collector/redfish: skip deep DIMM subresources and remove memory from critical warmup

This commit is contained in:
mchus committed 2026-02-28 15:16:04 +03:00
1 parent 1d282c4196
commit b6ff47fea8
2 files changed
+21 -1

No files matched your search

+12
View File
@@ -768,3 +768,15 @@ func TestReplayCollectGPUs_DropsModelOnlyPlaceholderWhenConcreteDiscoveredLater(
t.Fatalf("expected concrete PCIe GPU to remain, got slot=%q", got[0].Slot)
}
}
func TestShouldCrawlPath_MemorySubresourcesAreSkipped(t *testing.T) {
if !shouldCrawlPath("/redfish/v1/Systems/1/Memory/CPU0_C0D0") {
t.Fatalf("expected direct DIMM resource to be crawlable")
}
if shouldCrawlPath("/redfish/v1/Systems/1/Memory/CPU0_C0D0/Assembly") {
t.Fatalf("expected DIMM assembly subresource to be skipped")
}
if shouldCrawlPath("/redfish/v1/Systems/1/Memory/CPU0_C0D0/MemoryMetrics") {
t.Fatalf("expected DIMM metrics subresource to be skipped")
}
}