GraphQL AuthN/Z End2End tests
See original GitHub issueCurrently, we only have unit tests for Authentication handler. We need to add tests to make sure even if the Authentication middleware returns HttpStatus.OK for anonymous
requests (when the bearer token is absent, invalid should return 401 Unauthorized), the request eventually still fails in AuthZ - if anonymous
role does not have the right permissions configured to it in the configuration file.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Integration testing - Apollo GraphQL Docs
Apollo Server uses a multi-step request pipeline to validate and execute incoming GraphQL operations. This pipeline supports integration with custom plugins ...
Read more >Writing E2E Tests for Axum & GraphQL
Writing a test compliant GraphQL Server with Async-GraphQL ... With Async-GraphQL you dont need to spin up the server in order to test...
Read more >Writing end-to-end tests for GraphQL servers using Jest
This guide walks you through end-to-end testing for GraphQL servers using Jest to ensure your applications work properly after changes.
Read more >Cypress w/graphql - having issues getting AUTH with ...
I am having an issue on really the best way to "test" this. For example, I have an account section that a user...
Read more >Question: how to test my types? · Issue #688 · graphql ...
I would like to write unit tests that cover the existence of the fields and their type correctness, as well as the resolvers....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Some of the ground work for this is in #553
Thanks, this is resolved by
GraphQLAuthorizationHandlerTests.cs