-
Notifications
You must be signed in to change notification settings - Fork 317
Verify errors in GraphQlTester nested path check with Consumer #891
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
Comments
The idea is that errors should be dealt with first and waived if expected via From the error it looks like the server returned |
I know what's causing it, but I would expect the behavior to be the same. So either a regular Currently this is only true for a regular path match. |
To clarify, I'm talking about unexpected responses. If a test fails due to an unexpected response, the error of the regular path matcher allows you to understand what was wrong with the response, but using the subpath matcher this information is missing. |
Oh, I see. You're saying the error is present in both cases, but they behave differently. That's not expected and is probably why I misunderstood. The support for nested paths came later, and mistakenly didn't put the same error check. |
I know, I proposed the feature, haha |
When using a nested path selection and the query throws an exception, it fails with a
PathNotFoundException
instead of it returning the response error.For example, for a test with the following;
It would fail with:
But when the test uses a nested path like so (rudimentary example):
The error output is:
I guess the response should be checked for errors before trying to parse the json?
The text was updated successfully, but these errors were encountered: