From 66cc818755c54b746b87e45fe1d13804aedbf41d Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Fri, 4 Apr 2025 17:06:09 +0200 Subject: feat: remove SSL-CA-Location config (#99) --- .../etl/processor/pseudonym/GpasPseudonymGeneratorTest.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/integrationTest/kotlin') diff --git a/src/integrationTest/kotlin/dev/dnpm/etl/processor/pseudonym/GpasPseudonymGeneratorTest.kt b/src/integrationTest/kotlin/dev/dnpm/etl/processor/pseudonym/GpasPseudonymGeneratorTest.kt index da0c55c..2e539e9 100644 --- a/src/integrationTest/kotlin/dev/dnpm/etl/processor/pseudonym/GpasPseudonymGeneratorTest.kt +++ b/src/integrationTest/kotlin/dev/dnpm/etl/processor/pseudonym/GpasPseudonymGeneratorTest.kt @@ -1,7 +1,7 @@ /* * This file is part of ETL-Processor * - * Copyright (c) 2024 Comprehensive Cancer Center Mainfranken, Datenintegrationszentrum Philipps-Universität Marburg and Contributors + * Copyright (c) 2025 Comprehensive Cancer Center Mainfranken, Datenintegrationszentrum Philipps-Universität Marburg and Contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published @@ -47,10 +47,9 @@ class GpasPseudonymGeneratorTest { fun setup() { val retryTemplate = RetryTemplateBuilder().customPolicy(SimpleRetryPolicy(1)).build() val gPasConfigProperties = GPasConfigProperties( - "http://localhost/ttp-fhir/fhir/gpas/\$pseudonymizeAllowCreate", + "https://localhost/ttp-fhir/fhir/gpas/\$pseudonymizeAllowCreate", "test", null, - null, null ) @@ -63,7 +62,7 @@ class GpasPseudonymGeneratorTest { fun shouldReturnExpectedPseudonym() { this.mockRestServiceServer.expect { method(HttpMethod.POST) - requestTo("http://localhost/ttp-fhir/fhir/gpas/\$pseudonymizeAllowCreate") + requestTo("https://localhost/ttp-fhir/fhir/gpas/\$pseudonymizeAllowCreate") }.andRespond { withStatus(HttpStatus.OK).body(getDummyResponseBody("1234", "test", "test1234ABCDEF567890")) .createResponse(it) @@ -76,7 +75,7 @@ class GpasPseudonymGeneratorTest { fun shouldThrowExceptionIfGpasNotAvailable() { this.mockRestServiceServer.expect { method(HttpMethod.POST) - requestTo("http://localhost/ttp-fhir/fhir/gpas/\$pseudonymizeAllowCreate") + requestTo("https://localhost/ttp-fhir/fhir/gpas/\$pseudonymizeAllowCreate") }.andRespond { withException(IOException("Simulated IO error")).createResponse(it) } @@ -88,7 +87,7 @@ class GpasPseudonymGeneratorTest { fun shouldThrowExceptionIfGpasDoesNotReturn2xxResponse() { this.mockRestServiceServer.expect { method(HttpMethod.POST) - requestTo("http://localhost/ttp-fhir/fhir/gpas/\$pseudonymizeAllowCreate") + requestTo("https://localhost/ttp-fhir/fhir/gpas/\$pseudonymizeAllowCreate") }.andRespond { withStatus(HttpStatus.FOUND) .header(HttpHeaders.LOCATION, "https://localhost/ttp-fhir/fhir/gpas/\$pseudonymizeAllowCreate") -- cgit v1.2.3