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 extractTelegramChatID URL parse error
rcourtmaneb46942a4030
diff --git a/internal/notifications/security_utils_test.go b/internal/notifications/security_utils_test.goindex 615cd01924..77944182f5 100644--- a/internal/notifications/security_utils_test.go+++ b/internal/notifications/security_utils_test.go@@ -319,6 +319,12 @@ func TestExtractTelegramChatID(t *testing.T) {expectError: true,errorSubstr: "missing chat_id parameter",},+ {+ name: "URL with control characters",+ webhookURL: "https://api.telegram.org/bot\x00/sendMessage?chat_id=12345",+ expectError: true,+ errorSubstr: "invalid URL format",+ },}for _, tt := range tests {