Workaround classloading issue in Quarkus internal tests by making io.quarkus.security.test.utils.AuthData#applyAugmentors
public
#46584
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.
I wrote plugin that allows me to run all the tests in this project (both in extension deployment modules and IT modules) against delivered Quarkus artifacts placed in local Maven repository (like if I download RHBQ Maven repo zip and unwrap it) and tests that use
quarkus-security-test-utils
fails over some classloader issue even though Quarkus artifact versions seem to match, for example:No idea why, the only difference is that sources are not built locally, but instead artifacts are used from local repository. And also I made all dependencies a test scope ones (in extension modules). Now,
io.quarkus.security.test.utils.AuthData#applyAugmentors
field is only non-public field in the class and it was me who added it (and made it package-private), so maybe it would be acceptable to make itpublic
?It works around my issues, thanks. (P.S. I need this fix for 3.20, so adding a backport label)