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.

Measure endpoint ownership independently of startup probe count

pulse-triage[bot]a31fdc77da23
diff --git a/pkg/proxmox/cluster_client_endpoint_ownership_test.go b/pkg/proxmox/cluster_client_endpoint_ownership_test.go
index cb72a96c04..177f183eb9 100644
--- a/pkg/proxmox/cluster_client_endpoint_ownership_test.go
+++ b/pkg/proxmox/cluster_client_endpoint_ownership_test.go
@@ -31,7 +31,9 @@ func testClusterClientEndpointOwnershipRoutingAndTrust(t *testing.T) {
t.Error("caller-owned endpoint edit declared a new first-use trust target")
}
before := declared.requests.Load()
- if nodes, err := cc.GetNodes(context.Background()); err != nil || len(nodes) != 1 || declared.requests.Load() != before+1 {
+ // The first single-endpoint read also performs a connectivity check. Pin
+ // the authenticated target, not the implementation's number of API probes.
+ if nodes, err := cc.GetNodes(context.Background()); err != nil || len(nodes) != 1 || declared.requests.Load() <= before {
t.Errorf("caller-owned endpoint edit interrupted ordinary pinned monitoring: %v", err)
}