Skip to content

Commit

Permalink
actions/inventory_test/supermicro: unlist drive capability and lsblk …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
joelrebel committed Nov 10, 2022
1 parent 48cc7a0 commit 3ae8332
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions actions/inventory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3ae8332

Please sign in to comment.