fix authn fuzz testing

This commit is contained in:
evilchili 2022-11-20 01:07:38 -08:00
parent d67eee9121
commit 3359fe1b1a

View File

@ -32,7 +32,7 @@ def test_auth_random_input():
def auth(fuzzed_input): def auth(fuzzed_input):
with boddle(auth=(fuzzed_input, fuzzed_input)): with boddle(auth=(fuzzed_input, fuzzed_input)):
response = ondemand.build() response = ondemand.build()
assert response.status_code == 403 assert response.status_code == 401
atheris.Setup([sys.argv[0], "-atheris_runs=100000"], auth) atheris.Setup([sys.argv[0], "-atheris_runs=100000"], auth)
try: try: