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.

test: add encryption keys to remaining cmd/pulse tests

rcourtman37f5e12dc21e
diff --git a/cmd/pulse/commands_test.go b/cmd/pulse/commands_test.go
index 5bdebdd080..92195820e0 100644
--- a/cmd/pulse/commands_test.go
+++ b/cmd/pulse/commands_test.go
@@ -87,6 +87,7 @@ func TestConfigExportCmd(t *testing.T) {
tempDir := t.TempDir()
os.Setenv("PULSE_DATA_DIR", tempDir)
defer os.Unsetenv("PULSE_DATA_DIR")
+ createTestEncryptionKey(t, tempDir)
// Set PULSE_PASSPHRASE for non-interactive test
os.Setenv("PULSE_PASSPHRASE", "testpass")
@@ -116,6 +117,7 @@ func TestConfigImportCmd(t *testing.T) {
tempDir := t.TempDir()
os.Setenv("PULSE_DATA_DIR", tempDir)
defer os.Unsetenv("PULSE_DATA_DIR")
+ createTestEncryptionKey(t, tempDir)
os.Setenv("PULSE_PASSPHRASE", "testpass")
defer os.Unsetenv("PULSE_PASSPHRASE")
@@ -401,6 +403,7 @@ func TestConfigAutoImportCmd(t *testing.T) {
tempDir := t.TempDir()
os.Setenv("PULSE_DATA_DIR", tempDir)
defer os.Unsetenv("PULSE_DATA_DIR")
+ createTestEncryptionKey(t, tempDir)
os.Setenv("PULSE_INIT_CONFIG_PASSPHRASE", "testpass")
defer os.Unsetenv("PULSE_INIT_CONFIG_PASSPHRASE")