-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add ability to disable security on a per test basis #10487
Conversation
...-framework/security/src/main/java/io/quarkus/test/security/QuarkusSecurityTestExtension.java
Show resolved
Hide resolved
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.
Very useful!
I added a small comment. Also SpringPreauthorizeInterceptor
and SpringSecuredInterceptor
will need to be updated and should probably have a test, but I'll take are of that in a follow-up PR
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ ElementType.TYPE, ElementType.METHOD }) | ||
public @interface TestSecurity { |
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.
I am not sold on the name, but I don't have any better alternatives to offer :(
Also allows for a user to be configured to run the tests under.
e9d1bf4
to
fa6cede
Compare
@sberyozkin, @loicmathieu I think you will be interested in this as well |
Just saw it, very useful indead ! |
Yeah, I'm going to add that in a subsequent PR |
Follows up on: quarkusio#10487 Resolves: quarkusio#10490
Follows up on: quarkusio#10487 Resolves: quarkusio#10490
Follows up on: quarkusio#10487 Resolves: quarkusio#10490
@geoand @stuartwdouglas, looks good thanks |
Also allows for a user to be configured to run the tests
under.