Replies: 2 comments 1 reply
-
/cc @geoand (kotlin), @pedroigor (oidc), @sberyozkin (oidc) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@b0ro, I have to admit I'm not sure why keycloak.url is not visible in the first case, since your 2nd case confirms OidcWiremockTestResource sets it, we also have a few integration tests depending on it. Feels like some class loader ordering issue. Can you try your 2nd case again but without setting smallrye jwt props ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to mock keycloak server in my extension integration test, so the test case was at the begining as follows:
and my config file contained:
I basically followed what was described in:
https://quarkus.io/guides/security-oidc-bearer-token-authentication#integration-testing
but I was getting the following error:
So then I've just written my own mock which extended the OidcWiremockTestResource:
and I've changed the annotation to:
and now I'm getting:
and tests are using old-host instead of the values injected by KeycloakWireMock. So is it still possible to mock keycloack in my tests?
#tests #keycloak #kotlin
Beta Was this translation helpful? Give feedback.
All reactions