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
test: skip tests requiring /etc/pulse in CI
rcourtmanfdba5591672e
diff --git a/cmd/pulse/commands_test.go b/cmd/pulse/commands_test.goindex 92195820e0..07c14a5622 100644--- a/cmd/pulse/commands_test.go+++ b/cmd/pulse/commands_test.go@@ -683,14 +683,20 @@ func TestConfigExport_ErrorPaths(t *testing.T) {assert.Error(t, err)assert.Contains(t, err.Error(), "passphrase is required")- // 2. Default data dir branch- os.Unsetenv("PULSE_DATA_DIR")- rootCmd.SetArgs([]string{"config", "export", "--passphrase", "test"})- // This will try to read from /etc/pulse/nodes.enc which might not exist or be accessible- rootCmd.Execute()+ // 2. Default data dir branch - only test if /etc/pulse exists+ if _, err := os.Stat("/etc/pulse"); err == nil {+ os.Unsetenv("PULSE_DATA_DIR")+ rootCmd.SetArgs([]string{"config", "export", "--passphrase", "test"})+ // This will try to read from /etc/pulse/nodes.enc which might not exist or be accessible+ rootCmd.Execute()+ }}func TestConfigImport_NoDataDir(t *testing.T) {+ // Skip in CI where /etc/pulse doesn't exist+ if _, err := os.Stat("/etc/pulse"); os.IsNotExist(err) {+ t.Skip("Skipping test: /etc/pulse does not exist (likely CI environment)")+ }resetFlags()os.Unsetenv("PULSE_DATA_DIR")rootCmd.SetArgs([]string{"config", "import", "--passphrase", "test", "-i", "nonexistent"})