diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-05-21 11:01:32 +0200 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-05-21 11:01:32 +0200 |
commit | 3657268ba54eb250a74d7f86b592e995ed0488c1 (patch) | |
tree | 2296cbd2d2a87ba3203cd1df0ef78f54fff43c73 /app/src/test | |
parent | 2685d083765a3a109a90a4dbeb18248a626cac3a (diff) |
Adjust keycloak url after KeycloakX upgrade0.1.1
Issue-ID: PORTALNG-104
Change-Id: Ia58100883bb1d23c2f61d3f8d7ce3bfc37358135
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'app/src/test')
3 files changed, 4 insertions, 4 deletions
diff --git a/app/src/test/java/org/onap/portalng/history/BaseIntegrationTest.java b/app/src/test/java/org/onap/portalng/history/BaseIntegrationTest.java index ec682dd..bfb1ada 100644 --- a/app/src/test/java/org/onap/portalng/history/BaseIntegrationTest.java +++ b/app/src/test/java/org/onap/portalng/history/BaseIntegrationTest.java @@ -78,7 +78,7 @@ public abstract class BaseIntegrationTest { WireMock.stubFor( WireMock.get( WireMock.urlMatching( - String.format("/auth/realms/%s/protocol/openid-connect/certs", realm))) + String.format("/realms/%s/protocol/openid-connect/certs", realm))) .willReturn( WireMock.aResponse() .withHeader("Content-Type", JWKSet.MIME_TYPE) @@ -90,7 +90,7 @@ public abstract class BaseIntegrationTest { WireMock.stubFor( WireMock.post( WireMock.urlMatching( - String.format("/auth/realms/%s/protocol/openid-connect/token", realm))) + String.format("/realms/%s/protocol/openid-connect/token", realm))) .withBasicAuth("test", "test") .withRequestBody(WireMock.containing("grant_type=client_credentials")) .willReturn( diff --git a/app/src/test/java/org/onap/portalng/history/TokenGenerator.java b/app/src/test/java/org/onap/portalng/history/TokenGenerator.java index 1887682..74fbf0c 100644 --- a/app/src/test/java/org/onap/portalng/history/TokenGenerator.java +++ b/app/src/test/java/org/onap/portalng/history/TokenGenerator.java @@ -123,7 +123,7 @@ public class TokenGenerator { @Builder.Default private final List<String> roles = Collections.emptyList(); public String issuer() { - return String.format("http://localhost:%d/auth/realms/%s", port, realm); + return String.format("http://localhost:%d/realms/%s", port, realm); } } } diff --git a/app/src/test/resources/application.yml b/app/src/test/resources/application.yml index b163059..3fef61a 100644 --- a/app/src/test/resources/application.yml +++ b/app/src/test/resources/application.yml @@ -11,7 +11,7 @@ spring: oauth2: resourceserver: jwt: - jwk-set-uri: http://localhost:${wiremock.server.port}/auth/realms/ONAP/protocol/openid-connect/certs #Keycloak Endpoint + jwk-set-uri: http://localhost:${wiremock.server.port}/realms/ONAP/protocol/openid-connect/certs #Keycloak Endpoint de: flapdoodle: |