mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 07:46:06 -04:00
fuzz 405
This commit is contained in:
@@ -99,11 +99,13 @@ def test_fuzz_cancel_job(fuzzed_job_id, fuzzed_service_id, request):
|
|||||||
|
|
||||||
status = response.status_code
|
status = response.status_code
|
||||||
# 400 Bad Request, 403 Forbidden, 404 Not Found
|
# 400 Bad Request, 403 Forbidden, 404 Not Found
|
||||||
|
# 405 Method Not Allowed (if ids are not ascii)
|
||||||
assert status in (
|
assert status in (
|
||||||
200,
|
200,
|
||||||
400,
|
400,
|
||||||
403,
|
403,
|
||||||
404,
|
404,
|
||||||
|
405,
|
||||||
), f"Unexpected status: {status} for path: {path}"
|
), f"Unexpected status: {status} for path: {path}"
|
||||||
# This will only happen once every trillion years
|
# This will only happen once every trillion years
|
||||||
if status == 200:
|
if status == 200:
|
||||||
|
|||||||
Reference in New Issue
Block a user