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
[BUG] "FailedHealthCheck : 50 filtered examples but only 0 good ones." Schemathesis not producing tests for a valid open API yaml file #1763
Comments
Hi! Thanks for opening the issue! On t he first glance, the schema looks satisfiable and without logically incompatible blocks. I guess that, at least we can have a better error message that could point to logically incompatible parts if there are any. However, Schemathesis could be too strict in terms of data generation which leads to these results. You might want to disable health checks or adjust the schema a bit so it is easier to generate (eg adding additionalProperties:false leads to easier generation). At the moment I can’t give more details, but I’ll get back to it in the beginning of the next week |
Thanks for the fast response @Stranger6667 ! Also, please can you tell me how to disable health checks inside schemathesis github action (and the CLI). |
Hello @Stranger6667 , is there any progress on this one? |
Thank you for the heads up!
You can use the following option for CLI:
Note, that you can supply multiple values via a comma. For GitHub Action it could be:
Let me know if it works for you! :) |
I'm AFK at the moment, I'll update you on this, as soon as I get back. |
@Stranger6667 I'm still getting a similar error. (not able to create tests). It's the same endpoint, and everything else is running (I checked the endpoints manually)
|
Also, is this the correct way to pass multiple arguments inside the GitHub Workflow :-
Or do I pass them inside a single |
Hi @AryanGodara, That looks like a bug. Interestingly, removing the bearer token makes Schemathesis generate data. Let me check it in detail today |
It could be this way:
|
I also noticed that, even when passing empty/ or no bearer token |
I guess that |
Yes, there are warnings similar to, "Most of your responses are 4xx" |
…he same API operation and an explicit `Authorization` header Ref: #1763
…he same API operation and an explicit `Authorization` header Ref: #1763
Hi @AryanGodara The issue has been fixed in |
@Stranger6667 How do I update the workflow yaml file to use version |
It defaults to |
Ahh, thanks @Stranger6667 ! Let me test it again and report back to you |
For some reason, after updating the args, the schemathesis workflow just isn't starting.
|
@Stranger6667 Can you please check this above comment. The health check is working locally in the CLI now, but not working in the workflow |
What does it output? All looks fine at the first glance |
…he same API operation and an explicit `Authorization` header Ref: #1763
Checklist
Describe the bug
Error in all endpoints when testing a simple openAPI/swaggerUI specification file.
To Reproduce
Steps to reproduce the behavior:
If possible, please post a minimal version of your API schema that cause this behavior:
Expected behavior
I want to schemathesis to produce a result, where the endpoints either fail or pass, or atleasting show me example cases of why my endpoint is failing, not give up on generating usecases.
Environment (please complete the following information):
Additional Context
I'm using this inside a pull request for Mainflux IoT Platform
Link to the Pull Request:
https://github.com/mainflux/mainflux/pull/1692
The text was updated successfully, but these errors were encountered: