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(notifications): pin recovery wording in received webhook payloads
pulse-triage[bot]6c6539637628
diff --git a/internal/notifications/notifications_test.go b/internal/notifications/notifications_test.goindex 1038a0e2de..ee27dc1480 100644--- a/internal/notifications/notifications_test.go+++ b/internal/notifications/notifications_test.go@@ -4155,6 +4155,12 @@ func TestSendResolvedWebhookServiceTemplates(t *testing.T) {if !strings.Contains(text, "Resolved") {t.Errorf("expected 'Resolved' in text, got %q", text)}+ if !strings.Contains(text, "web-vm-01 on pve1 is now healthy") || strings.Contains(text, testAlert.Message) {+ t.Errorf("recovery text must describe recovery, not the original breach: %q", text)+ }+ if testAlert.Message != "CPU high on web-vm-01" {+ t.Fatal("rendering recovery mutated the original alert message")+ }})t.Run("discord resolved uses green embed color", func(t *testing.T) {@@ -4190,6 +4196,10 @@ func TestSendResolvedWebhookServiceTemplates(t *testing.T) {t.Fatal("expected at least one embed")}embed := embeds[0].(map[string]any)+ description, _ := embed["description"].(string)+ if !strings.Contains(description, "web-vm-01 on pve1 is now healthy") || strings.Contains(description, testAlert.Message) {+ t.Errorf("recovery description must describe recovery, not the original breach: %q", description)+ }// Green color = 3066993if embed["color"] != float64(3066993) {t.Errorf("expected green embed color 3066993, got %v", embed["color"])