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
Keep PBS History E2E fixtures faithful to validated responses
pulse-triage[bot]a1cde2ffe0bf
diff --git a/tests/integration/tests/63-pbs-history-targets.spec.ts b/tests/integration/tests/63-pbs-history-targets.spec.tsindex 2abc4c08c8..9766fe731e 100644--- a/tests/integration/tests/63-pbs-history-targets.spec.ts+++ b/tests/integration/tests/63-pbs-history-targets.spec.ts@@ -116,7 +116,18 @@ for (const width of [1280, 390]) {await page.route('**/api/metrics-store/history?**', async route => {const q = new URL(route.request().url()).searchParams;targets.push(`${q.get('resourceType')}/${q.get('resourceId')}`);- await route.fulfill({ json: { metrics: { cpu: [0, 1, 2].map(i => ({ timestamp: Date.now() - (2-i)*60000, value: 10+i, min: 10+i, max: 10+i, count: 1 })), memory: [0, 1, 2].map(i => ({ timestamp: Date.now() - (2-i)*60000, value: 20+i, min: 20+i, max: 20+i, count: 1 })) }, resourceId: q.get('resourceId'), resourceType: q.get('resourceType') } });+ // Match the real history envelope. Response admission deliberately rejects+ // missing selection/range bounds, even when the metric points are valid.+ const end = Date.now();+ const start = end - 120_000;+ await route.fulfill({ json: {+ resourceId: q.get('resourceId'), resourceType: q.get('resourceType'),+ range: q.get('range') || '24h', start, end, source: 'store',+ metrics: {+ cpu: [0, 1, 2].map(i => ({ timestamp: start + i*60000, value: 10+i, min: 10+i, max: 10+i, count: 1 })),+ memory: [0, 1, 2].map(i => ({ timestamp: start + i*60000, value: 20+i, min: 20+i, max: 20+i, count: 1 })),+ },+ } });});await page.goto('/proxmox/backups', { waitUntil: 'domcontentloaded' });for (const type of ['vm', 'agent']) {