Repository navigation
Move AuthorizationCodeTest to the new testsuite - #49772
Conversation
92a65b3 to
3aa317c
Compare
3aa317c to
a5a8a82
Compare
There was a problem hiding this comment.
@lhanusov Thanks!
I would slightly prefer to use constants like OAuth2Constants.CODE , OAuth2Constants.ERROR , OAuth2Constants.RESPONSE instead of hardcoded strings like "code", "error" etc. But that is rather a minor thing, which can be improved in case there are more change requests for this PR. But I don't consider it blocker for the PR, so approving.
a5a8a82 to
1735aa9
Compare
There was a problem hiding this comment.
Maybe we should introduce isSuccess and isError in AuthorizationEndpointResponse?
The implementation would basically just be:
boolean isSuccess() {
return isRedirected() && code != null;
}
boolean isError() {
return isRedirected() && error != null;
}
That'd be a bit cleaner than having to do assertNotNull. As it's just
Assertions.assertTrue(oauth.parseLoginRepsonse().isSuccess();
fa52800 to
bca23a3
Compare
Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
bca23a3 to
309e608
Compare
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.saml.SamlClientTest#testLoginWithOIDCClientKeycloak CI - Java Distribution IT (windows-latest - temurin - 17) org.keycloak.testsuite.saml.SamlClientTest#testLoginWithOIDCClientKeycloak CI - Java Distribution IT (windows-latest - temurin - 21) org.keycloak.testsuite.saml.SamlClientTest#testLoginWithOIDCClientKeycloak CI - Java Distribution IT (ubuntu-latest - temurin - 21) org.keycloak.testsuite.saml.SamlClientTest#testLoginWithOIDCClientKeycloak CI - Java Distribution IT (ubuntu-latest - temurin - 17) |
Closes keycloak#48201 Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
Closes #48201