Skip to content

Commit

Permalink
chore: change wiremock port
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsOveTen committed Apr 22, 2024
1 parent 5706188 commit ca694f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/no/fdk/userapi/adapter/TermsAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/no/fdk/userapi/utils/ContractMock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/no/fdk/userapi/utils/TestData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ca694f8

Please sign in to comment.