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.

Match exact read routes in stale-memory browser proof

pulse-triage[bot]c2bdf7de9103
diff --git a/frontend-modern/browser-tests/guest-memory-agent-stale.cjs b/frontend-modern/browser-tests/guest-memory-agent-stale.cjs
index 5dc58cf9c4..875788262e 100644
--- a/frontend-modern/browser-tests/guest-memory-agent-stale.cjs
+++ b/frontend-modern/browser-tests/guest-memory-agent-stale.cjs
@@ -78,9 +78,12 @@ const settle = (page) =>
if (!url.pathname.startsWith('/api/')) return route.continue();
record.requests.push({ path: url.pathname, method: request.method() });
assert.equal(request.method(), 'GET', 'no mutations');
- assert(!/diagnostics|\/run|guest-agent|qemu/.test(url.pathname), 'no guest operations');
+ assert(
+ !/\/(?:diagnostics|run|run-command|guest-agent|qemu)(?:\/|$)/.test(url.pathname),
+ `no guest operations: ${url.pathname}`,
+ );
let body = { success: true, data: [], alerts: [], anomalies: [], config: null };
- if (url.pathname.includes('/charts/'))
+ if (url.pathname === '/api/metrics-store/history')
body = {
resourceType: 'vm',
resourceId: url.searchParams.get('resourceId') || 'fixture:pve1:101',