question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphQL AuthN/Z End2End tests

See original GitHub issue

Currently, 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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aaronpowellcommented, Jul 19, 2022

Some of the ground work for this is in #553

0reactions
Aniruddh25commented, Sep 22, 2022

Thanks, this is resolved by GraphQLAuthorizationHandlerTests.cs

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found