Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Harden hostagent SMART no-device test

rcourtman4fc56162f628
diff --git a/internal/hostagent/smartctl_coverage_test.go b/internal/hostagent/smartctl_coverage_test.go
index f8cf4bb593..f4d24aad01 100644
--- a/internal/hostagent/smartctl_coverage_test.go
+++ b/internal/hostagent/smartctl_coverage_test.go
@@ -424,6 +424,8 @@ func TestDefaultRunCommandOutputRejectsOversizedOutput(t *testing.T) {
}
func TestCollectLocalNoDevices(t *testing.T) {
+ forceLinuxLSBLKFallback(t)
+
origRun := smartRunCommandOutput
t.Cleanup(func() { smartRunCommandOutput = origRun })