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.

Preserve native facets in the source-owned memory browser fixture

pulse-triage[bot]f90f7cf2c0e0
diff --git a/frontend-modern/browser-tests/guest-memory-agent-stale.cjs b/frontend-modern/browser-tests/guest-memory-agent-stale.cjs
index 875788262e..dad2885be0 100644
--- a/frontend-modern/browser-tests/guest-memory-agent-stale.cjs
+++ b/frontend-modern/browser-tests/guest-memory-agent-stale.cjs
@@ -127,6 +127,10 @@ const settle = (page) =>
.first()
.waitFor();
const evidence = await page.evaluate(() => window.__staleAgentMemory.evidence());
+ assert.equal(evidence.canonical.platformType, 'proxmox-pve');
+ assert.equal(evidence.canonical.proxmox.lock, 'backup');
+ assert.equal(evidence.projected.diskStatusReason, 'prev-vm-locked');
+ assert.equal(evidence.projected.guestAgentStatus, 'deferred');
assert.equal(evidence.projected.agentStale, true);
assert.equal(
evidence.projected.memory.observation.state,
diff --git a/frontend-modern/browser-tests/guest-memory-agent-stale.tsx b/frontend-modern/browser-tests/guest-memory-agent-stale.tsx
index 0cb4bb9e26..230b57a5c3 100644
--- a/frontend-modern/browser-tests/guest-memory-agent-stale.tsx
+++ b/frontend-modern/browser-tests/guest-memory-agent-stale.tsx
@@ -45,7 +45,7 @@ const initial: Resource = {
diskStatusReason: 'prev-vm-locked',
lock: 'backup',
},
- agent: { stale: false, version: 'fixture-version', lastReportAt: observedAt },
+ agent: { stale: false, agentVersion: 'fixture-version', lastReportAt: observedAt },
};
// Only the transport is synthetic; the canonical merger, mapper and mounted
@@ -72,7 +72,9 @@ function Fixture() {
const update = (patch: Partial<Resource>, keys: (keyof Resource)[]) =>
setSnapshot((previous) =>
mergeCanonicalResourceDeltaSnapshot(
- [{ id: initial.id, ...patch } as Resource],
+ // The native delta wrapper receives a complete resource with changed
+ // keys, not an identity-only patch that would withdraw provider facets.
+ [{ ...previous[0], ...patch }],
previous,
new Set([initial.id]),
new Map([[initial.id, keys]]),