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.

Align recovery route contract tests

rcourtman5ea81e120393
diff --git a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
index c706fa6392..e245c5e69a 100644
--- a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
+++ b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
@@ -138,6 +138,7 @@ describe('resource link routing contract', () => {
it('builds and parses recovery query params', () => {
const href = buildRecoveryPath({
provider: 'proxmox-pbs',
+ stale: '1',
range: '7',
cluster: 'cluster-main',
day: '2026-02-13',
@@ -207,7 +208,7 @@ describe('resource link routing contract', () => {
it('canonicalizes stale-only recovery route flags to the owned query shape', () => {
expect(buildRecoveryPath({ stale: 'true', provider: 'proxmox-pve' })).toBe(
- '/recovery?provider=proxmox-pve&stale=true',
+ '/recovery?provider=proxmox-pve&stale=1',
);
expect(parseRecoveryLinkSearch('?stale=%201%20')).toMatchObject({ stale: '1' });
});