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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
test: Add edge case for NormalizeAppriseConfig low timeout
rcourtmanb3265807804e
diff --git a/internal/notifications/notifications_test.go b/internal/notifications/notifications_test.goindex e827d8f532..aab8e8544f 100644--- a/internal/notifications/notifications_test.go+++ b/internal/notifications/notifications_test.go@@ -104,6 +104,17 @@ func TestNormalizeAppriseConfig(t *testing.T) {if disabledHTTP.Enabled {t.Fatalf("expected HTTP config without server URL to disable notifications")}++ // Test timeout below minimum (1-4 seconds should clamp to 5)+ lowTimeout := NormalizeAppriseConfig(AppriseConfig{+ Enabled: true,+ Mode: AppriseModeHTTP,+ ServerURL: "https://apprise.example.com",+ TimeoutSeconds: 3,+ })+ if lowTimeout.TimeoutSeconds != 5 {+ t.Fatalf("expected timeout to clamp to 5 for values 1-4, got %d", lowTimeout.TimeoutSeconds)+ }}func TestSetCooldownClampsNegativeValues(t *testing.T) {