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.

Compare detached runtime snapshots consistently in import regression

pulse-triage[bot]336c7c68ae8c
diff --git a/internal/api/config_import_tenant_runtime_test.go b/internal/api/config_import_tenant_runtime_test.go
index c28f2856ce..b38eac4555 100644
--- a/internal/api/config_import_tenant_runtime_test.go
+++ b/internal/api/config_import_tenant_runtime_test.go
@@ -119,7 +119,7 @@ func TestConfigImportAppliesOnlySelectedTenant(t *testing.T) {
t.Errorf("non-target %s monitor replaced or unavailable", orgID)
}
}
- if !reflect.DeepEqual(cfg, beforeDefault) || !reflect.DeepEqual(monitors["tenant-b"].GetConfig(), beforeOther) {
+ if !reflect.DeepEqual(cfg.DeepCopy(), beforeDefault) || !reflect.DeepEqual(monitors["tenant-b"].GetConfig().DeepCopy(), beforeOther) {
t.Error("non-target runtime configuration or credentials changed")
}
if !reflect.DeepEqual(configImportFileDigests(t, persistences["default"], persistences["tenant-b"]), filesBefore) {