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.

Keep the Diagnostics boundary assertion aligned with scoped reads

pulse-triage[bot]13943821172f
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index 163e8b67ab..12d417693b 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -3296,7 +3296,10 @@ describe('frontend resource type boundaries', () => {
expect(diagnosticsResultsPanelSource).toContain('DIAGNOSTICS_EMPTY_PBS_MESSAGE');
expect(diagnosticsResultsPanelSource).toContain('DIAGNOSTICS_EMPTY_STATE_COPY');
expect(diagnosticsStateSource).toContain('export const useDiagnosticsPanelState =');
- expect(diagnosticsStateSource).toContain("apiFetchJSON('/api/diagnostics')");
+ expect(diagnosticsStateSource).toContain("apiFetchJSON('/api/diagnostics', {");
+ expect(diagnosticsStateSource).toContain('expectedOrgID: acceptedReader.org');
+ expect(diagnosticsStateSource).toContain('signal: request.signal');
+ expect(diagnosticsStateSource).toContain('retry: false');
expect(diagnosticsStateSource).toContain('URL.createObjectURL');
expect(diagnosticsModelSource).toContain('export function sanitizeDiagnosticsData');
expect(diagnosticsPresentationSource).toContain('export const DIAGNOSTICS_PANEL_COPY');