diff --git a/src/main/kotlin/no/fdk/userapi/adapter/TermsAdapter.kt b/src/main/kotlin/no/fdk/userapi/adapter/TermsAdapter.kt index 4d7bb11..1535150 100644 --- a/src/main/kotlin/no/fdk/userapi/adapter/TermsAdapter.kt +++ b/src/main/kotlin/no/fdk/userapi/adapter/TermsAdapter.kt @@ -15,7 +15,7 @@ class TermsAdapter( private val hostProperties: HostProperties, private val securityProperties: SecurityProperties ) { - private val fiveSeconds = 5000 + private val fiveSeconds = 5555 fun orgAcceptedTermsVersion(organization: String): String { val url = URL("${hostProperties.termsHost}/terms/org/$organization/version") diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5b8b42a..bd3133c 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -50,8 +50,8 @@ spring: config.activate.on-profile: contract-test application: hosts: - altinnProxyHost: http://localhost:5000/altinn - termsHost: http://localhost:5000/terms + altinnProxyHost: http://localhost:5555/altinn + termsHost: http://localhost:5555/terms whitelists: adminList: ${ADMIN_LIST:10987654321} orgNrWhitelist: ${ORGNR_WHITELIST:920210023,910258028,123456789} diff --git a/src/test/kotlin/no/fdk/userapi/utils/ContractMock.kt b/src/test/kotlin/no/fdk/userapi/utils/ContractMock.kt index 9596866..524f616 100644 --- a/src/test/kotlin/no/fdk/userapi/utils/ContractMock.kt +++ b/src/test/kotlin/no/fdk/userapi/utils/ContractMock.kt @@ -101,7 +101,7 @@ abstract class WiremockContext { startMockServer() try { - val con = URL("http://localhost:5000/ping").openConnection() as HttpURLConnection + val con = URL("http://localhost:5555/ping").openConnection() as HttpURLConnection con.connect() if (con.responseCode != 200) { logger.debug("Ping to mock server failed") diff --git a/src/test/kotlin/no/fdk/userapi/utils/TestData.kt b/src/test/kotlin/no/fdk/userapi/utils/TestData.kt index c7e28fb..9cc4c4c 100644 --- a/src/test/kotlin/no/fdk/userapi/utils/TestData.kt +++ b/src/test/kotlin/no/fdk/userapi/utils/TestData.kt @@ -3,7 +3,7 @@ package no.fdk.userapi.utils import no.fdk.userapi.model.AltinnOrganization import no.fdk.userapi.model.AltinnReporteeType -const val LOCAL_SERVER_PORT = 5000 +const val LOCAL_SERVER_PORT = 5555 const val API_TEST_PORT = 5050 const val EDITOR_ROLE: String = "editor"