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 support for @WithMockUser to WebGraphQlTester #455

Open
dsarlo-viso opened this issue Jul 28, 2022 · 2 comments
Open

Add support for @WithMockUser to WebGraphQlTester #455

dsarlo-viso opened this issue Jul 28, 2022 · 2 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@dsarlo-viso
Copy link

We currently use the annotation @WithMockUser to impersonate a user with a specific role in our integration tests.

The WebGraphQlTester only allows for basic or bearer auth headers, so for right now, we can't create any test cases for our internal api.

Maybe there is a way currently to get the WebGraphQlTester to use the test security context overridden by WithMockUserSecurityContextFactory?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 28, 2022
@MaartenBl
Copy link

Have you found a way to make this work yet?

@dsarlo-viso
Copy link
Author

@MaartenBl Nope, still waiting for this to be picked up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

3 participants