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.

Check backup report availability in legacy catalog parsing

rcourtman324292b3348a
diff --git a/frontend-modern/src/components/Settings/__tests__/reportingCatalogModel.branchcov2.test.ts b/frontend-modern/src/components/Settings/__tests__/reportingCatalogModel.branchcov2.test.ts
index 1b38e0882f..65f1997a8d 100644
--- a/frontend-modern/src/components/Settings/__tests__/reportingCatalogModel.branchcov2.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/reportingCatalogModel.branchcov2.test.ts
@@ -116,7 +116,7 @@ describe('parseReportingCatalog (entry-point branches)', () => {
expectInvalid({ ...baseCatalog(), description: 7 });
});
- it('round-trips the full catalog shape when vmInventoryExport is null (null arm)', () => {
+ it('normalizes the catalog when vmInventoryExport is null and backup availability is omitted', () => {
const catalog = parseReportingCatalog(baseCatalog()) as ReportingCatalog;
expect(catalog).toStrictEqual({
id: 'advanced_reporting',
@@ -132,6 +132,7 @@ describe('parseReportingCatalog (entry-point branches)', () => {
},
performanceReport: basePerformanceReport(),
vmInventoryExport: null,
+ backupHealthAvailable: false,
});
// Explicit null-arm assertion.
expect(catalog.vmInventoryExport).toBeNull();