feat: add standalone server topology view
This commit is contained in:
+17
@@ -30,6 +30,23 @@ func TestDetectBeeSupportArchive(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestCollectTopologyEvidenceSupportsCategorizedBundleAndPrefersFresh(t *testing.T) {
|
||||
files := []parser.ExtractedFile{
|
||||
{Path: "bundle/export/memory/dmidecode-type17.txt", Content: []byte("memory")},
|
||||
{Path: "bundle/export/storage/storage-controllers.txt", Content: []byte("storage")},
|
||||
{Path: "bundle/export/gpu/nvidia-smi-query.csv", Content: []byte("query")},
|
||||
{Path: "bundle/export/gpu/nvidia-smi-topo.txt", Content: []byte("old")},
|
||||
{Path: "bundle/export/gpu/nvidia-smi-topo-fresh.txt", Content: []byte("fresh")},
|
||||
}
|
||||
got := collectTopologyEvidence(files)
|
||||
if got == nil {
|
||||
t.Fatal("expected topology evidence")
|
||||
}
|
||||
if got.DIMMType17 != "memory" || got.StorageMap != "storage" || got.NVIDIAQueryCSV != "query" || got.NVIDIATopology != "fresh" {
|
||||
t.Fatalf("unexpected topology evidence: %+v", got)
|
||||
}
|
||||
}
|
||||
|
||||
// TestDetectBeeSupportArchiveV12Layout covers the real bundle layout produced
|
||||
// by bee-support v12.x, where bee-audit.json lives under tasks/_state/ and
|
||||
// runtime-health.json under status/, not export/. See CLAUDE.md memory on
|
||||
|
||||
Reference in New Issue
Block a user