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.

Capture the normal broadcast scope in startup recovery proof

pulse-triage[bot]6b49fc4c67e3
diff --git a/internal/monitoring/monitor_startup_recovery_test.go b/internal/monitoring/monitor_startup_recovery_test.go
index 39287d3bf9..bf4c6aa696 100644
--- a/internal/monitoring/monitor_startup_recovery_test.go
+++ b/internal/monitoring/monitor_startup_recovery_test.go
@@ -136,10 +136,11 @@ func TestPBSStartupRecoveryKeepsTrustAndFirstPollBoundary(t *testing.T) {
instance := config.PBSInstance{Name: "startup-pbs", Host: server.URL, User: "fixture@pbs", Password: "fixture-password", VerifySSL: true, Fingerprint: hex.EncodeToString(pin[:]), MonitorDatastores: true}
m := newPBSHealthAuthorityMonitor([]config.PBSInstance{instance})
project := func(phase string) {
+ snapshot, scope := m.currentStateWithScope()
wire, err := json.Marshal(struct {
Phase string `json:"phase"`
State models.StateFrontend `json:"state"`
- }{phase, m.buildBroadcastFrontendStateFromSnapshot(m.state.GetSnapshot(), mockModeScope{})})
+ }{phase, m.buildBroadcastFrontendStateFromSnapshot(snapshot, scope)})
if err != nil {
t.Fatal(err)
}