From f42d91ec74f28f0618159354484a99e257909de8 Mon Sep 17 00:00:00 2001 From: CSantosM <4a.santos@gmail.com> Date: Tue, 17 Feb 2026 11:28:30 +0100 Subject: [PATCH] backend: remove allowUserCreation from security config tests for simplification --- .../api/global-config/security.test.ts | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/meet-ce/backend/tests/integration/api/global-config/security.test.ts b/meet-ce/backend/tests/integration/api/global-config/security.test.ts index 80d06f4c..a70e4cdb 100644 --- a/meet-ce/backend/tests/integration/api/global-config/security.test.ts +++ b/meet-ce/backend/tests/integration/api/global-config/security.test.ts @@ -21,7 +21,6 @@ describe('Security Config API Tests', () => { it('should update security config with valid complete data', async () => { const validConfig: SecurityConfig = { authentication: { - allowUserCreation: true, oauthProviders: [] } }; @@ -37,39 +36,18 @@ describe('Security Config API Tests', () => { }); describe('Update security config validation', () => { - it('should reject when allowUserCreation is not a boolean', async () => { - const response = await updateSecurityConfig({ - authentication: { - allowUserCreation: 'invalid' - } - } as unknown as SecurityConfig); - expectValidationError(response, 'authentication.allowUserCreation', 'Expected boolean, received string'); - }); - it('should reject when oauthProviders is not an array', async () => { const response = await updateSecurityConfig({ authentication: { - allowUserCreation: true, oauthProviders: 'invalid' } } as unknown as SecurityConfig); expectValidationError(response, 'authentication.oauthProviders', 'Expected array, received string'); }); - it('should reject when allowUserCreation is not provided', async () => { - const response = await updateSecurityConfig({ - authentication: { - oauthProviders: [] - } - } as unknown as SecurityConfig); - expectValidationError(response, 'authentication.allowUserCreation', 'Required'); - }); - it('should reject when oauthProviders is not provided', async () => { const response = await updateSecurityConfig({ - authentication: { - allowUserCreation: true - } + authentication: {} } as SecurityConfig); expectValidationError(response, 'authentication.oauthProviders', 'Required'); }); @@ -86,7 +64,6 @@ describe('Security Config API Tests', () => { it('should return security config when authenticated as admin', async () => { const defaultConfig: SecurityConfig = { authentication: { - allowUserCreation: true, oauthProviders: [] } };