From e0b1617529db997ec9aa29b23dce95a3e0087c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Kuchy=C5=88ka=20=28Anty=29?= Date: Sat, 1 Mar 2025 01:10:14 +0100 Subject: [PATCH] fix: sso tests build --- .../tests/src/test/kotlin/io/tolgee/ee/SsoOrganizationsTest.kt | 2 -- .../tolgee/ee/api/v2/controllers/SsoProviderControllerTest.kt | 2 -- 2 files changed, 4 deletions(-) diff --git a/ee/backend/tests/src/test/kotlin/io/tolgee/ee/SsoOrganizationsTest.kt b/ee/backend/tests/src/test/kotlin/io/tolgee/ee/SsoOrganizationsTest.kt index c2db0f71bc..657f3b0ea3 100644 --- a/ee/backend/tests/src/test/kotlin/io/tolgee/ee/SsoOrganizationsTest.kt +++ b/ee/backend/tests/src/test/kotlin/io/tolgee/ee/SsoOrganizationsTest.kt @@ -71,7 +71,6 @@ class SsoOrganizationsTest : AuthorizedControllerTest() { enabledFeaturesProvider.forceEnabled = setOf(Feature.SSO) currentDateProvider.forcedDate = currentDateProvider.date tolgeeProperties.authentication.ssoOrganizations.enabled = true - tolgeeProperties.authentication.ssoOrganizations.allowedDomains = listOf("domain.com") testData = SsoTestData() testData.addTenant() testDataService.saveTestData(testData.root) @@ -81,7 +80,6 @@ class SsoOrganizationsTest : AuthorizedControllerTest() { fun tearDown() { testDataService.cleanTestData(testData.root) tolgeeProperties.authentication.ssoOrganizations.enabled = false - tolgeeProperties.authentication.ssoOrganizations.allowedDomains = emptyList() currentDateProvider.forcedDate = null enabledFeaturesProvider.forceEnabled = null } diff --git a/ee/backend/tests/src/test/kotlin/io/tolgee/ee/api/v2/controllers/SsoProviderControllerTest.kt b/ee/backend/tests/src/test/kotlin/io/tolgee/ee/api/v2/controllers/SsoProviderControllerTest.kt index a1532a18d7..4b314346c6 100644 --- a/ee/backend/tests/src/test/kotlin/io/tolgee/ee/api/v2/controllers/SsoProviderControllerTest.kt +++ b/ee/backend/tests/src/test/kotlin/io/tolgee/ee/api/v2/controllers/SsoProviderControllerTest.kt @@ -23,7 +23,6 @@ class SsoProviderControllerTest : AuthorizedControllerTest() { fun setup() { enabledFeaturesProvider.forceEnabled = setOf(Feature.SSO) tolgeeProperties.authentication.ssoOrganizations.enabled = true - tolgeeProperties.authentication.ssoOrganizations.allowedDomains = listOf("google") testData = SsoTestData() testDataService.saveTestData(testData.root) this.userAccount = testData.user @@ -34,7 +33,6 @@ class SsoProviderControllerTest : AuthorizedControllerTest() { testDataService.cleanTestData(testData.root) enabledFeaturesProvider.forceEnabled = null tolgeeProperties.authentication.ssoOrganizations.enabled = false - tolgeeProperties.authentication.ssoOrganizations.allowedDomains = emptyList() } @Test