-
Notifications
You must be signed in to change notification settings - Fork 7.9k
JUnit 5 test framework PoC #29517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JUnit 5 test framework PoC #29517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes here are a bit of a hack, but need a way to bootstrap the admin account that doesn't require setting environment variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something you want to improve now, or do a follow up for? If it's the latter then let's log an issue so it is not forgotten.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change around the admin user looks good to me. It's temporary in any case since the admin bootstrapping will be redesigned as part of #9829. The sys prop is not documented so we can freely remove/change without notice as needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is a follow up for this I am fine with considering this resolved for the time being.
pedroigor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, approving to make it possible to start collaborating on it and working on the design.
lhanusov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - as it helps to move forward.
test-poc/base/src/test/java/org/keycloak/test/base/DefaultConfig1Test.java
Outdated
Show resolved
Hide resolved
test-poc/base/src/test/java/org/keycloak/test/base/DefaultConfig2Test.java
Outdated
Show resolved
Hide resolved
test-poc/framework/src/main/java/org/keycloak/test/framework/injection/InstanceWrapper.java
Outdated
Show resolved
Hide resolved
...poc/framework/src/main/java/org/keycloak/test/framework/server/RemoteKeycloakTestServer.java
Outdated
Show resolved
Hide resolved
test-poc/framework/src/main/java/org/keycloak/test/framework/injection/Registry.java
Outdated
Show resolved
Hide resolved
test-poc/framework/src/main/java/org/keycloak/test/framework/injection/Registry.java
Outdated
Show resolved
Hide resolved
test-poc/framework/src/main/java/org/keycloak/test/framework/realm/ClientConfig.java
Outdated
Show resolved
Hide resolved
...c/framework/src/main/java/org/keycloak/test/framework/server/KeycloakTestServerSupplier.java
Outdated
Show resolved
Hide resolved
vmuzikar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from the QuarkusKeycloakApplication perspective.
jonkoops
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, LGTM, let's get this merged in
Closes keycloak#29516 Signed-off-by: stianst <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unreported flaky test detected, please review
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.model.session.UserSessionPersisterProviderTest#testMigrateSessionKeycloak CI - Store Model Tests |
Closes #29516
Signed-off-by: stianst [email protected]