Repository navigation
Fix oid4vc tests - #29209
Merged
Merged
Fix oid4vc tests#29209
Conversation
Signed-off-by: Stefan Wiedemann <wistefan@googlemail.com>
Signed-off-by: Stefan Wiedemann <wistefan@googlemail.com>
mposolda
approved these changes
May 2, 2024
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.adapter.servlet.BrokerLinkAndTokenExchangeTest#testExternalExchangeCreateNewUserUsingMappersorg.keycloak.testsuite.adapter.servlet.BrokerLinkAndTokenExchangeTest#testExternalExchangeorg.keycloak.testsuite.adapter.servlet.BrokerLinkAndTokenExchangeTest#testAccountLinkNoTokenStoreorg.keycloak.testsuite.client.ClientTypesTest#testUpdateClientWithClientTypeorg.keycloak.testsuite.oauth.ClientTokenExchangeTest#testExchangeWithDynamicScopesEnabledorg.keycloak.testsuite.oauth.ClientTokenExchangeTest#testClientExchangeorg.keycloak.testsuite.oauth.ClientTokenExchangeTest#testIntrospectTokenAfterImpersonationorg.keycloak.testsuite.oauth.ClientTokenExchangeTest#testPublicClientNotAllowedorg.keycloak.testsuite.oauth.ClientTokenExchangeTest#testExchangeUsingServiceAccountorg.keycloak.testsuite.oauth.ClientTokenExchangeTest#testImpersonationorg.keycloak.testsuite.oauth.ClientTokenExchangeTest#testImpersonationUsingPublicClient |
robson90
pushed a commit
to robson90/keycloak
that referenced
this pull request
May 2, 2024
closes keycloak#28982 closes keycloak#28983 closes keycloak#28984 closes keycloak#28985 closes keycloak#28986 closes keycloak#28987 closes keycloak#28988 closes keycloak#28989 closes keycloak#28990 closes keycloak#28991 closes keycloak#28992 closes keycloak#28993 closes keycloak#28994 closes keycloak#28995 closes keycloak#28996 * only enable/disable features that should Signed-off-by: Stefan Wiedemann <wistefan@googlemail.com> * use default profile if nothing is set Signed-off-by: Stefan Wiedemann <wistefan@googlemail.com> --------- Signed-off-by: Stefan Wiedemann <wistefan@googlemail.com> Signed-off-by: Robin Meese <39960884+robson90@users.noreply.github.com>
Contributor
|
This introduces an issue when the feature is enabled on the class and then disabled on a method, tests subsequent to the one with |
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.
Fixes the flakyiness of the OID4VC tests. The OID4VCGrantFeatureTest introduces a side-effect, that fails the following OID4VCI tests(thus the succeed if only the failed once are restarted).
Since the Feature test disabled an by-default disabled (experimental)feature and the test-framework enables all features that where disabled-by-annotation after the test, the OID4VCI-Feature was set to enabled in the testcontext. However, since the the following tests require a restart, they are disabled in the newley started instance, but enabled in the test-context.
The PR sets the feature state in the After-Test to the value set in the current profile or in the defaults(e.g. all EXPERIMENTAL will stay disabled).
closes #28982
closes #28983
closes #28984
closes #28985
closes #28986
closes #28987
closes #28988
closes #28989
closes #28990
closes #28991
closes #28992
closes #28993
closes #28994
closes #28995
closes #28996