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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
test(settings): format architecture and principal context tests
pulse-triage[bot]2705098aac19
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex eee1ade428..828c5df0f4 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -2083,7 +2083,9 @@ describe('settings architecture guardrails', () => {// organisation panel or a browser storage hint.describe('organisation principal shell boundary', () => {it('prefers authenticated identity with a nullish legacy fallback', () => {- expect(settingsPanelRegistryContextSource).toContain('params.securityStatus()?.currentUsername ??');+ expect(settingsPanelRegistryContextSource).toContain(+ 'params.securityStatus()?.currentUsername ??',+ );expect(settingsPanelRegistryContextSource).not.toContain('sessionStorage');for (const panel of ['Overview', 'Access', 'Sharing']) {expect(settingsPanelRegistryContextSource).toContain(diff --git a/frontend-modern/src/components/Settings/__tests__/settingsPanelRegistryContext.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsPanelRegistryContext.test.tsindex 9eba46c797..c9fb3188d8 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsPanelRegistryContext.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsPanelRegistryContext.test.ts@@ -42,20 +42,24 @@ function buildParams(securityStatus: SecurityStatus | null): UseSettingsPanelRegdescribe('buildSettingsPanelRegistryContext', () => {it('uses the authenticated principal rather than the configured administrator', () => {- const context = buildSettingsPanelRegistryContext(buildParams({- currentUsername: 'org-owner',- authUsername: 'instance-admin',- } as SecurityStatus));+ const context = buildSettingsPanelRegistryContext(+ buildParams({+ currentUsername: 'org-owner',+ authUsername: 'instance-admin',+ } as SecurityStatus),+ );expect(context.getOrganizationSharingPanelProps().currentUser).toBe('org-owner');expect(context.getOrganizationAccessPanelProps().currentUser).toBe('org-owner');expect(context.getOrganizationOverviewPanelProps().currentUser).toBe('org-owner');});it('does not replace an explicitly empty principal with the configured admin', () => {- const context = buildSettingsPanelRegistryContext(buildParams({- currentUsername: '',- authUsername: 'instance-admin',- } as SecurityStatus));+ const context = buildSettingsPanelRegistryContext(+ buildParams({+ currentUsername: '',+ authUsername: 'instance-admin',+ } as SecurityStatus),+ );expect(context.getOrganizationSharingPanelProps().currentUser).toBe('');});