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 UpdateStatus not found test for notifications package
rcourtman629645a2a0a7
diff --git a/internal/notifications/queue_test.go b/internal/notifications/queue_test.goindex d54aba7e2f..be04138554 100644--- a/internal/notifications/queue_test.go+++ b/internal/notifications/queue_test.go@@ -652,6 +652,20 @@ func TestGetQueueStats(t *testing.T) {t.Errorf("failed count = %d, want 1", stats["failed"])}})++ t.Run("UpdateStatus returns error for non-existent notification", func(t *testing.T) {+ tempDir := t.TempDir()+ nq, err := NewNotificationQueue(tempDir)+ if err != nil {+ t.Fatalf("Failed to create notification queue: %v", err)+ }+ defer nq.Stop()++ err = nq.UpdateStatus("non-existent-id", QueueStatusSent, "")+ if err == nil {+ t.Error("expected error when updating non-existent notification, got nil")+ }+ })}func TestPerformCleanup(t *testing.T) {