Skip to content
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

Merged
merged 1 commit into from
Jul 6, 2020

Conversation

stuartwdouglas
Copy link
Member

Also allows for a user to be configured to run the tests
under.

Copy link
Contributor

@geoand geoand left a 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 {
Copy link
Contributor

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.
@stuartwdouglas stuartwdouglas force-pushed the enable-test-security branch from e9d1bf4 to fa6cede Compare July 6, 2020 04:48
@geoand
Copy link
Contributor

geoand commented Jul 6, 2020

@sberyozkin, @loicmathieu I think you will be interested in this as well

@loicmathieu
Copy link
Contributor

Just saw it, very useful indead !
I think this is what users are expecting to have to be able to mock autentication.
This would also be useful to have a link to it from the test guide.

@geoand
Copy link
Contributor

geoand commented Jul 6, 2020

This would also be useful to have a link to it from the test guide.

Yeah, I'm going to add that in a subsequent PR

geoand added a commit to geoand/quarkus that referenced this pull request Jul 6, 2020
geoand added a commit to geoand/quarkus that referenced this pull request Jul 6, 2020
geoand added a commit to geoand/quarkus that referenced this pull request Jul 7, 2020
@sberyozkin
Copy link
Member

@geoand @stuartwdouglas, looks good thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants