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.

fix(test): add missing SecurityAPI.getStatus mock to UnifiedAgents test

rcourtman0dd6b89264f7
diff --git a/frontend-modern/src/components/Settings/__tests__/UnifiedAgents.test.tsx b/frontend-modern/src/components/Settings/__tests__/UnifiedAgents.test.tsx
index fac1ec172f..338bce2e14 100644
--- a/frontend-modern/src/components/Settings/__tests__/UnifiedAgents.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/UnifiedAgents.test.tsx
@@ -36,6 +36,7 @@ vi.mock('@/api/monitoring', () => ({
vi.mock('@/api/security', () => ({
SecurityAPI: {
createToken: (...args: unknown[]) => createTokenMock(...args),
+ getStatus: () => Promise.resolve({ requiresAuth: true, apiTokenConfigured: false }),
},
}));