-
Notifications
You must be signed in to change notification settings - Fork 339
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
Add fuzz testing for HTTP API with Schemathesis #12920
Comments
@lobkovilya FYI, in CLI you could set |
Hi @Stranger6667, I tried this one:
And I see all the tests have
I am not sure if I'm debugging this correctly, but I also see:
And I see no new resources were created on the server after |
I think it would be better to use But otherwise, P.S. I don't want to spam too much here, just want to make sure that CLI would work for your use case. Let me know if there is a better place to discuss / debug this issue. |
Integrate Schemathesis to perform fuzz testing based on the OpenAPI spec. This will help identify edge cases, and unexpected failures, and improve the robustness of the HTTP API. The test setup should be automated and ideally integrated into CI.
I've done a small POC using
python
(as I didn't find a way to setmesh: "default"
by using CLI):Run:
It returns a bunch of small and easy-to-fix problems:
Response violates schema: 'total' is a required property
Undocumented HTTP status code
Undocumented Content-Type
Response violates schema: None is not of type 'string'
The text was updated successfully, but these errors were encountered: