From 3ae833209b35119e18d4e10dec4b2f765c980685 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Thu, 3 Nov 2022 14:10:03 +0100 Subject: [PATCH] actions/inventory_test/supermicro: unlist drive capability and lsblk collector The drives in the lsblk, hdparm fixture data are not part of the SMC device fixture, and so this causes the tests to fail - since the drive data does not match. --- actions/inventory_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/actions/inventory_test.go b/actions/inventory_test.go index 7672c160..f2938f9e 100644 --- a/actions/inventory_test.go +++ b/actions/inventory_test.go @@ -105,15 +105,9 @@ func Test_Inventory_smc(t *testing.T) { t.Error(err) } - // drive capability collectors - hdparm := utils.NewFakeHdparm() - nvme := utils.NewFakeNvme() - lsblk := utils.NewFakeLsblk() - collectors := &Collectors{ Inventory: lshw, - Drives: []DriveCollector{smartctl, lsblk}, - DriveCapabilities: []DriveCapabilityCollector{hdparm, nvme}, + Drives: []DriveCollector{smartctl}, NICs: mlxup, CPLDs: ipmicfg0, BIOS: ipmicfg1,