Match exact read routes in stale-memory browser proof

Keep guest-operation and mutation refusals, but match operation path segments rather than the run prefix of the read-only runtime-capabilities route. Bind the empty History fixture to the production metrics-store/history route. Preserve both prior browser failures and the original product assertions.

Change-source: pulse-maintainer
This commit is contained in:
pulse-triage[bot]
2026-10-13 07:26:15 +01:00
parent da0484d544
commit c2bdf7de91
@@ -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',