We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The alternative Bean with higher priority is chosen. The injected AuthorizationController is the customCustomOidcTestAuthController (see below).
CustomOidcTestAuthController
The injected AuthorizationController is the default TestAuthController. Seen from the debugger: by using
TestAuthController
@Inject AuthorizationController authorizationController;
in the class inheriting fromCucumberQuarkusTest.
CucumberQuarkusTest
In other test classes this works perfectly fine, just in our cucumber quarkus tests is does not work.
The CustomOidcTestAuthController class:
@Alternative @Priority(Interceptor.Priority.LIBRARY_BEFORE + 1) @ApplicationScoped public class CustomOidcTestAuthController extends TestAuthController { @Override public boolean isAuthorizationEnabled() { return false; } }
(hint: Interceptor.Priority.LIBRARY_BEFORE is 1000, the TestAuthController has 3000)
Interceptor.Priority.LIBRARY_BEFORE
1000
3000
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected result
The alternative Bean with higher priority is chosen.
The injected AuthorizationController is the custom
CustomOidcTestAuthController
(see below).Observed result
The injected AuthorizationController is the default
TestAuthController
.Seen from the debugger:
by using
in the class inheriting from
CucumberQuarkusTest
.Misc
In other test classes this works perfectly fine, just in our cucumber quarkus tests is does not work.
The
CustomOidcTestAuthController
class:(hint:
Interceptor.Priority.LIBRARY_BEFORE
is1000
, theTestAuthController
has3000
)The text was updated successfully, but these errors were encountered: