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.

Give Settings refresh fixtures a complete capability response

pulse-triage[bot]83e517b359a0
diff --git a/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.refresh.test.tsx b/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.refresh.test.tsx
index 250b8a22a5..d32a1c2677 100644
--- a/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.refresh.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.refresh.test.tsx
@@ -24,7 +24,30 @@ vi.mock('@/stores/license', () => ({
const grantedStatus = {
currentUsername: 'test-admin',
requiresAuth: true,
- settingsCapabilities: { infrastructureRead: true, authenticationRead: true },
+ settingsCapabilities: {
+ infrastructureRead: true,
+ authenticationRead: true,
+ availabilityRead: false,
+ pulseIntelligenceRead: false,
+ diagnosticsRead: false,
+ systemLogsRead: false,
+ reportingRead: false,
+ systemSettingsRead: false,
+ patrolRun: false,
+ apiAccessRead: false,
+ apiAccessWrite: false,
+ authenticationWrite: false,
+ singleSignOnRead: false,
+ singleSignOnWrite: false,
+ roles: false,
+ users: false,
+ auditLog: false,
+ auditWebhooksRead: false,
+ auditWebhooksWrite: false,
+ relayRead: false,
+ relayWrite: false,
+ billingAdmin: false,
+ },
};
const response = (status: Partial<SecurityStatus> = grantedStatus) => ({
ok: true,