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.

Exercise admitted disk type disabling in composition fixture

pulse-triage[bot]01e7ba68a743
diff --git a/internal/alerts/host_unraid_lifecycle_test.go b/internal/alerts/host_unraid_lifecycle_test.go
index 9c81c76fce..89498acef1 100644
--- a/internal/alerts/host_unraid_lifecycle_test.go
+++ b/internal/alerts/host_unraid_lifecycle_test.go
@@ -1796,9 +1796,12 @@ func TestUnraidOnlyTemperatureRetainsPendingContinuity(t *testing.T) {
host.Unraid.Disks = []models.HostUnraidDisk{disk}
case "type-off":
cfg := m.GetConfig()
- cfg.DiskTempByType = map[string]HysteresisThreshold{"sata": {Trigger: 0}}
+ cfg.DiskTempByType = map[string]HysteresisThreshold{"custom": {Trigger: 0}}
m.UpdateConfig(cfg)
- cfg.DiskTempByType = map[string]HysteresisThreshold{"sata": {Trigger: 80, Clear: 70}}
+ if threshold := m.DiskTemperatureThreshold("custom"); threshold != nil && threshold.Trigger > 0 {
+ t.Fatalf("type-off fixture did not disable temperature alerts: %+v", threshold)
+ }
+ cfg.DiskTempByType = map[string]HysteresisThreshold{"custom": {Trigger: 80, Clear: 70}}
m.UpdateConfig(cfg)
}
elapsed.Store(int64(time.Minute))