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
Match CSV export safety assertions to canonical runtime identity
pulse-triage[bot]477be1e7c3e8
diff --git a/internal/api/reporting_csv_safety_test.go b/internal/api/reporting_csv_safety_test.goindex 9129be687f..71ef5985c7 100644--- a/internal/api/reporting_csv_safety_test.go+++ b/internal/api/reporting_csv_safety_test.go@@ -29,6 +29,11 @@ func TestReportingInventoryDownloadAndSavedScheduleEscapeSpreadsheetText(t *testsetUnexportedField(t, monitor, "configPersist", p)h := NewReportingHandlers(newReportingMTMForTest(t, monitor), nil)ctx := context.WithValue(context.Background(), OrgIDContextKey, "default")+ before, ok := h.getReportingEnrichmentSnapshot(ctx, "default")+ require.True(t, ok)+ require.Len(t, before.Resources, 1)+ canonicalID := before.Resources[0].ID+ require.NotEmpty(t, canonicalID)request := httptest.NewRequest(http.MethodGet, "/api/admin/reports/inventory/vms/export?format=csv", nil).WithContext(ctx)download := httptest.NewRecorder()h.HandleExportVMInventory(download, request)@@ -39,7 +44,7 @@ func TestReportingInventoryDownloadAndSavedScheduleEscapeSpreadsheetText(t *testrequire.NoError(t, err)require.Len(t, records, 2)require.Equal(t, []string{- "vm-formula", "'+1+1", "'\t@node", "'@SUM(1,1)", "101", "'=1+1", "online", "2", "0", "0", "0", "'\rreason",+ canonicalID, "'+1+1", "'@node", "'@SUM(1,1)", "101", "'=1+1", "online", "2", "0", "0", "0", "'\rreason",}, records[1])s := validReportSchedulePayload()@@ -58,5 +63,6 @@ func TestReportingInventoryDownloadAndSavedScheduleEscapeSpreadsheetText(t *testsnapshot, ok := h.getReportingEnrichmentSnapshot(ctx, "default")require.True(t, ok)require.Len(t, snapshot.Resources, 1)+ require.Equal(t, canonicalID, snapshot.Resources[0].ID)require.Equal(t, "=1+1", snapshot.Resources[0].Name, "escape only the exported cell, never the monitored name")}