Complete Identity Provider DSL support in test framework - #51436
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Completes the test-framework DSL for configuring identity providers and their mappers.
Changes:
- Adds identity-provider configuration methods.
- Introduces
IdentityProviderMapperBuilder. - Adds mapper-builder support to
RealmBuilder.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
RealmBuilder.java |
Accepts identity-provider mapper builders. |
IdentityProviderMapperBuilder.java |
Adds fluent mapper construction. |
IdentityProviderBuilder.java |
Adds identity-provider configuration options. |
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
Suppressed comments (1)
test-framework/builders/src/main/java/org/keycloak/testframework/realm/IdentityProviderMapperBuilder.java:15
- The new fluent mapper path has no unit coverage, although this module's
BuilderTestcovers similar builder composition. Add a test that sets every mapper field/config entry, passes the builder toRealmBuilder.identityProviderMappers(...), and asserts the resulting nested representation so this new DSL contract is protected.
public static IdentityProviderMapperBuilder create() {
return new IdentityProviderMapperBuilder(new IdentityProviderMapperRepresentation());
}
vaceksimon
reviewed
Aug 5, 2026
vaceksimon
left a comment
Contributor
There was a problem hiding this comment.
Add missing builder methods to IdentityProviderBuilder and introduce IdentityProviderMapperBuilder to provide a fluent API consistent with the rest of the RealmBuilder DSL. Closes keycloak#51359 Signed-off-by: Francesco Poli <polifr@gmail.com>
Signed-off-by: Francesco Poli <polifr@gmail.com>
Signed-off-by: Francesco Poli <polifr@gmail.com>
Signed-off-by: Francesco Poli <polifr@gmail.com>
polifr
force-pushed
the
test-framework-builders-enhancement
branch
from
August 5, 2026 20:47
783f628 to
40931bb
Compare
Contributor
|
Hey @ahus1, can you please re-run the failed jobs? They don't seem to be related to this PR's changes |
ahus1
approved these changes
Aug 6, 2026
Member
|
@vaceksimon - quite a lot of jobs failed; let's hope for the best. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR completes the Identity Provider DSL in the Keycloak Test Framework.
It includes:
The changes allow complete broker configurations to be expressed using the fluent Realm DSL without directly manipulating representation classes.
Closes #51359