optimize redfish post-probe and add eta progress

This commit is contained in:
2026-02-28 15:41:44 +03:00
parent 4c60ebbf1d
commit 8dbbec3610
2 changed files with 106 additions and 2 deletions

View File

@@ -779,4 +779,22 @@ func TestShouldCrawlPath_MemorySubresourcesAreSkipped(t *testing.T) {
if shouldCrawlPath("/redfish/v1/Systems/1/Memory/CPU0_C0D0/MemoryMetrics") {
t.Fatalf("expected DIMM metrics subresource to be skipped")
}
if shouldCrawlPath("/redfish/v1/Chassis/1/PCIeDevices/0/PCIeFunctions/1") {
t.Fatalf("expected noisy chassis pciefunctions branch to be skipped")
}
}
func TestShouldPostProbeCollectionPath(t *testing.T) {
if !shouldPostProbeCollectionPath("/redfish/v1/Chassis/1/Sensors") {
t.Fatalf("expected sensors collection to be post-probed")
}
if !shouldPostProbeCollectionPath("/redfish/v1/Systems/1/Storage/RAID/Drives") {
t.Fatalf("expected drives collection to be post-probed")
}
if shouldPostProbeCollectionPath("/redfish/v1/Chassis/1/Boards/BOARD1") {
t.Fatalf("expected board member resource to be skipped from post-probe")
}
if shouldPostProbeCollectionPath("/redfish/v1/Chassis/1/Assembly/Oem/COMMONb/COMMONbAssembly/1") {
t.Fatalf("expected assembly member resource to be skipped from post-probe")
}
}