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.

Exercise backup validation without bypassing empty-node protection

pulse-triage[bot]38a8b01ca3cd
diff --git a/internal/config/export_import_validation_test.go b/internal/config/export_import_validation_test.go
index e9e2a21cd7..bef0c84f94 100644
--- a/internal/config/export_import_validation_test.go
+++ b/internal/config/export_import_validation_test.go
@@ -81,7 +81,10 @@ func encryptImportValidationData(t *testing.T, data []byte) string {
func seedImportValidationState(t *testing.T) *ConfigPersistence {
t.Helper()
cp := NewConfigPersistence(t.TempDir())
- if err := cp.SaveNodesConfig([]PVEInstance{{Name: "keep-node", Host: "https://keep.invalid:8006", TokenValue: "synthetic-node-secret", Disabled: true, VerifySSL: true}}, nil, nil); err != nil {
+ // Agent-only, Docker, VMware and NAS installations can legitimately have
+ // no Proxmox nodes. The separate existing empty-node deletion guard does
+ // not protect their credentials, settings and metadata from this path.
+ if err := cp.SaveNodesConfig(nil, nil, nil); err != nil {
t.Fatal(err)
}
settings := DefaultSystemSettings()