Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Keep legacy-key probe controls independent of poll success

pulse-triage[bot]afd6cf975744
diff --git a/internal/api/truenas_handlers_test.go b/internal/api/truenas_handlers_test.go
index 79086ec57d..f1ba5961ed 100644
--- a/internal/api/truenas_handlers_test.go
+++ b/internal/api/truenas_handlers_test.go
@@ -1005,8 +1005,8 @@ func TestTrueNASHandlers_HandleTestSavedConnection_UsesStoredLegacyAPIKey(t *tes
t.Fatalf("unexpected saved client config: %+v", gotConfig)
}
summary := poller.ConnectionSummaries("default", []config.TrueNASInstance{connection})[connection.ID]
- if summary.Poll == nil || summary.Poll.LastSuccessAt == nil {
- t.Fatalf("expected saved retest to update poll summary success state, got %+v", summary.Poll)
+ if summary.Poll == nil || summary.Poll.LastSuccessAt != nil || summary.Poll.LastAttemptAt != nil || summary.Observed != nil {
+ t.Fatalf("a successful legacy-key probe must not invent runtime polling evidence, got %+v", summary)
}
missingReq := httptest.NewRequest(http.MethodPost, "/api/truenas/connections/missing/test", nil)