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.

Complete the read-only scheduler fixture adapter

pulse-triage[bot]1385ed449204
diff --git a/internal/monitoring/pve_backup_scheduler_test.go b/internal/monitoring/pve_backup_scheduler_test.go
index eaac48db83..ad790af9fa 100644
--- a/internal/monitoring/pve_backup_scheduler_test.go
+++ b/internal/monitoring/pve_backup_scheduler_test.go
@@ -26,6 +26,10 @@ func TestPVEBackupLifecycleSchedulerLeavesBackgroundOwnerAlive(t *testing.T) {
<-release
}
}}}
+ // This scheduler also performs ordinary node reads. Supply the complete
+ // existing no-op adapter for methods the focused backup fake does not own,
+ // rather than forwarding those methods through a nil embedded interface.
+ c.mockPVEClientExtra.mockPVEClient.PVEClientInterface = &stubPVEClient{}
m := newReplicationLifecycleMonitor(t, c, false)
m.config.EnableBackupPolling = true
m.config.BackupPollingCycles = 1