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 the native replication control free of synthetic config status

pulse-triage[bot]61662b8c5969
diff --git a/pkg/proxmox/replication_test.go b/pkg/proxmox/replication_test.go
index 9fad277d1b..aff3d47184 100644
--- a/pkg/proxmox/replication_test.go
+++ b/pkg/proxmox/replication_test.go
@@ -1019,7 +1019,11 @@ func TestReplicationStatusBindsOutcomeToSourceJob(t *testing.T) {
w.Header().Set("Content-Type", "application/json")
switch r.URL.Path {
case "/api2/json/cluster/replication":
- fmt.Fprint(w, `{"data":[{"id":"100-0","guest":100,"source":"pve1","target":"pve2","schedule":"*/5","last_sync_status":"ok"}]}`)
+ configOutcome := ""
+ if tc.outcome == "" {
+ configOutcome = `,"last_sync_status":"ok"`
+ }
+ fmt.Fprintf(w, `{"data":[{"id":"100-0","guest":100,"source":"pve1","target":"pve2","schedule":"*/5"%s}]}`, configOutcome)
case "/api2/json/nodes/pve1/replication/100-0/status":
w.WriteHeader(tc.httpStatus)
fmt.Fprint(w, tc.body)