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 renderWebhookURL URL parsing error test
rcourtmanac74146c4648
diff --git a/internal/notifications/notifications_test.go b/internal/notifications/notifications_test.goindex f0245f58c9..6d9f691b78 100644--- a/internal/notifications/notifications_test.go+++ b/internal/notifications/notifications_test.go@@ -562,6 +562,12 @@ func TestRenderWebhookURL_ErrorPaths(t *testing.T) {data: WebhookPayloadData{Message: "api"},wantErr: "missing scheme or host",},+ {+ name: "template renders to unparseable URL - malformed IPv6",+ urlTemplate: "http://[{{.Message}}",+ data: WebhookPayloadData{Message: "::1"},+ wantErr: "invalid URL",+ },}for _, tt := range tests {