Schemathesis v4.6.8 ━━━━━━━━━━━━━━━━━━━ ✅ Loaded specification from http://0.0.0.0:35947/api/swagger.json (in 0.08s) Base URL: http://0.0.0.0:35947/api Specification: Open API 2.0 Operations: 6 selected / 6 total Configuration: /home/stranger6667/programming/workbench/schemathes… ✅ API capabilities: Supports NULL byte in headers: ✓ ⏭ Examples (in 0.11s) ⏭ 6 skipped ❌ Coverage (in 3.68s) ✅ 1 passed ❌ 5 failed ❌ Fuzzing (in 0.33s) ✅ 1 passed ❌ 5 failed ❌ Stateful (in 75.73s) Scenarios: 824 API Links: 3 covered / 6 selected / 6 total (6 inferred) ✅ 811 passed ❌ 13 failed =================================== FAILURES =================================== _______________________________ GET /blog/posts ________________________________ 1. Test Case ID: bRd4LC - Undocumented HTTP status code Received: 400 Documented: 200 [400] Bad Request: `{ "errors": { "per_page": "Results per page {error_msg} invalid literal for int() with base 10: 'AAA'" }, "message": "Input payload validation failed" }` Reproduce with: curl -X GET 'http://0.0.0.0:35947/api/blog/posts?per_page=AAA' 2. Test Case ID: I8CUgk - Undocumented HTTP status code Received: 404 Documented: 200 [404] Not Found: `{ "message": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again." }` Reproduce with: curl -X GET 'http://0.0.0.0:35947/api/blog/posts?page=0' _______________________________ POST /blog/posts _______________________________ 1. Test Case ID: dsK4SN - Unsupported methods Unsupported method PUT returned 400, expected 405 Method Not Allowed Return 405 for methods not listed in the OpenAPI spec [400] Bad Request: `
Error code: 400
Message: Bad request syntax ('{"id": 0, "body": ""}PUT /api/blog/posts HTTP/1.1').
Error code explanation: HTTPStatus.BAD_REQUEST - Bad request syntax or unsupported meth // Output truncated...` Reproduce with: curl -X PUT -H 'Content-Type: application/json' -d '{"id": 0, "body": ""}' http://0.0.0.0:35947/api/blog/posts 2. Test Case ID: myEJXT - Undocumented HTTP status code Received: 201 Documented: 200 [201] Created: `{ "id": 5868, "body": "" }` Reproduce with: curl -X POST -H 'Content-Type: application/json' -d '{"body": ""}' http://0.0.0.0:35947/api/blog/posts _________________________ DELETE /blog/posts/{postId} __________________________ 1. Test Case ID: qr2YVZ - Undocumented Content-Type Received: text/html Documented: application/json [404] Not Found: `
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
` Reproduce with: curl -X DELETE http://0.0.0.0:35947/api/blog/posts/null%2Cnull ___________________________ GET /blog/posts/{postId} ___________________________ 1. Test Case ID: 8vVMi2 - Undocumented Content-Type Received: text/html Documented: application/json [404] Not Found: `The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
` Reproduce with: curl -X GET http://0.0.0.0:35947/api/blog/posts/null%2Cnull ___________________________ PUT /blog/posts/{postId} ___________________________ 1. Test Case ID: XW5bpM - Unsupported methods Unsupported method POST returned 400, expected 405 Method Not Allowed Return 405 for methods not listed in the OpenAPI spec [400] Bad Request: `Error code: 400
Message: Bad request syntax ('{"id": 0, "checksum": "", "body": ""}POST /api/blog/posts/0 HTTP/1.1').
Error code explanation: HTTPStatus.BAD_REQUEST - Bad request syntax // Output truncated...` Reproduce with: curl -X POST -H 'Content-Type: application/json' -d '{"id": 0, "checksum": "", "body": ""}' http://0.0.0.0:35947/api/blog/posts/0 2. Test Case ID: IlBZn4 - Server error - Undocumented HTTP status code Received: 500 Documented: 201, 404, 204 [500] Internal Server Error: `{ "message": "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application." }` Reproduce with: curl -X PUT -H 'Content-Type: application/json' -d '{"body": ""}' http://0.0.0.0:35947/api/blog/posts/0 ________________________________ Stateful tests ________________________________ 1. Test Case ID: e65sg5 - Undocumented HTTP status code Received: 200 Documented: 201, 404, 204 [200] OK: `null` Reproduce with: curl -X GET -H 'Content-Type: application/json' http://0.0.0.0:35947/api/blog/posts curl -X PUT -H 'Content-Type: application/json' -d '{"body": "`\ud917\udf7e\u00ac^l", "id": 2}' http://0.0.0.0:35947/api/blog/posts/2 2. Test Case ID: HH7BSK - Undocumented HTTP status code Received: 400 Documented: 201, 404, 204 [400] Bad Request: `{ "errors": { "body": "'body' is a required property" }, "message": "Input payload validation failed" }` Reproduce with: curl -X GET -H 'Content-Type: application/json' http://0.0.0.0:35947/api/blog/posts curl -X PUT -H 'Content-Type: application/json' -d '{"id": 2}' http://0.0.0.0:35947/api/blog/posts/2 3. Test Case ID: bPuJXC - Undocumented Content-Type Received: text/html Documented: application/json [404] Not Found: `
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
` Reproduce with: curl -X GET -H 'Content-Type: application/json' http://0.0.0.0:35947/api/blog/posts curl -X PUT -H 'Content-Type: application/json' -d '{"id": 2}' http://0.0.0.0:35947/api/blog/posts/null 4. Test Case ID: SUOoez - API rejected schema-compliant request Valid data should have been accepted Expected: 2xx, 401, 403, 404, 5xx - Undocumented Content-Type Received: text/html;charset=utf-8 Documented: application/json [400] Bad Request: `Error code: 400
Message: Bad request syntax ('{"id": 2}PUT /api/blog/posts/2 HTTP/1.1').
Error code explanation: HTTPStatus.BAD_REQUEST - Bad request syntax or unsupported method.
// Output truncated...` Reproduce with: curl -X GET -H 'Content-Type: application/json' http://0.0.0.0:35947/api/blog/posts curl -X PUT -H 'Content-Type: application/json' -d '{"body": "Y\u00c3-\u0085'"'"'\u00d6\u00ce\u00bf", "/\u0011": {"\udb36\udc4f\udad7\udef0\u0088": {"\u00f0\udb18\udde8\udaec\udeeejb\u00ac\u00c3\udb23\udf2c\u0097": [true, null, 5724]}, "": {"": {"\ud896\udd0a\ud849\udda7": -1.5, ":\u0096\u00ca": "\u00ad\u00d0\u00ab\ud9b8\udc07&\u0017\ud8e6\udf58\u00ab\ud803\udd79^\uda1d\udf7b"}, "\ud94b\udc5f\u0089\u00c8\u00ba\u00a6\ud9e0\udd3d\u00d9\u1f88,^": {}, "\udba3\udd1a\ud8a7\udfe8N\u001d": 1.3694878549064204e-64}, "\u00adwMmr\udb95\ude95\ud82a\udd13\ud808\udd8a.\u00e95": [[null, 1.5284132413934132e+16, true], [null]]}, "id": 2, "checksum": "\ud880\udd8b\ud8ff\ude59v"}' http://0.0.0.0:35947/api/blog/posts/2 5. Test Case ID: v5X9Su - Undocumented HTTP status code Received: 200 Documented: 201, 404, 204 [200] OK: `null` Reproduce with: curl -X GET http://0.0.0.0:35947/api/blog/posts curl -X DELETE http://0.0.0.0:35947/api/blog/posts/2 6. Test Case ID: mjYcye - Undocumented HTTP status code Received: 400 Documented: 200 [400] Bad Request: `{ "errors": { "": "68 is not of type 'object'" }, "message": "Input payload validation failed" }` Reproduce with: curl -X POST -H 'Content-Type: application/json' -d 68 http://0.0.0.0:35947/api/blog/posts 7. Test Case ID: Dj5zD3 - Server error - Undocumented Content-Type Received: text/html; charset=utf-8 Documented: application/json - Undocumented HTTP status code Received: 500 Documented: 200 [500] Internal Server Error: `