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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix(test): add stateFileDir to TestRun_Legacy test setup
rcourtmana383f0684842
diff --git a/internal/hostagent/proxmox_setup_test.go b/internal/hostagent/proxmox_setup_test.goindex 3e958a3b03..54afcb6a70 100644--- a/internal/hostagent/proxmox_setup_test.go+++ b/internal/hostagent/proxmox_setup_test.go@@ -727,10 +727,20 @@ func TestRun_Legacy(t *testing.T) {// Setup temporary state dirtmpDir := t.TempDir()- // Backup+ // Backup and restore all state-related variables+ origStateFileDir := stateFileDirorigStateFilePath := stateFilePath+ origStateFilePVE := stateFilePVE++ stateFileDir = tmpDirstateFilePath = filepath.Join(tmpDir, "proxmox-registered")- defer func() { stateFilePath = origStateFilePath }()+ stateFilePVE = filepath.Join(tmpDir, "proxmox-pve-registered")++ defer func() {+ stateFileDir = origStateFileDir+ stateFilePath = origStateFilePath+ stateFilePVE = origStateFilePVE+ }()origLookPath := lookPathdefer func() { lookPath = origLookPath }()