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.

Fix migration test mock mode isolation

rcourtman763aa5e0f196
diff --git a/tests/migration/v5_full_upgrade_test.go b/tests/migration/v5_full_upgrade_test.go
index 81dd8a255e..247d445bf5 100644
--- a/tests/migration/v5_full_upgrade_test.go
+++ b/tests/migration/v5_full_upgrade_test.go
@@ -437,6 +437,7 @@ func TestV5FullUpgradeScenario(t *testing.T) {
t.Run("PersistedV5LicenseAutoExchanges", func(t *testing.T) {
t.Setenv("PULSE_LICENSE_DEV_MODE", "false")
+ t.Setenv("PULSE_MOCK_MODE", "false")
legacyLicense, err := pkglicensing.GenerateLicenseForTesting(
@@ -547,6 +548,8 @@ func TestV5FullUpgradeScenario(t *testing.T) {
})
t.Run("PersistedV5RecurringLicenseAutoExchanges", func(t *testing.T) {
+ t.Setenv("PULSE_MOCK_MODE", "false")
+
tests := []struct {
name string
email string