Skip to content

Add support for @WithMockUser to WebGraphQlTester #455

Description

@dsarlo-viso

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions