From 53a1610fb861bdb30ff4e8497fa19417e1424caf Mon Sep 17 00:00:00 2001 From: javi Date: Sun, 20 Oct 2019 20:41:35 +0200 Subject: [PATCH] nested json test --- tests/test_acceptance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_acceptance.py b/tests/test_acceptance.py index 086f2528..9d3e03ef 100644 --- a/tests/test_acceptance.py +++ b/tests/test_acceptance.py @@ -49,6 +49,8 @@ ("test_novalue_post_fuzz", "-z list --zD a -u {}/anything -d FUZZ".format(HTTPBIN_URL), "-z wfuzzp --zD $$PREVFILE$$ -u FUZZ --filter r.params.post.a:=1 --field r.params.post.a", ["1"], None), ("test_json_post_fuzz2", "-z list --zD anything -u {}/FUZZ -d {{\"a\":\"2\"}} -H Content-Type:application/json".format(HTTPBIN_URL), "-z wfuzzp --zD $$PREVFILE$$ -u FUZZ --field r.params.post.a", ["2"], None), ("test_json_post_fuzz3", "-z list --zD anything -u {}/FUZZ -d {{\"a\":\"2\"}} -H Content-Type:application/json".format(HTTPBIN_URL), "-z wfuzzp --zD $$PREVFILE$$ -u FUZZ --filter r.params.post.a:=1 --field r.params.post.a", ["1"], None), + ("test_json_nested", "-z list --zD anything -u {}/FUZZ -d {{\"test\":\"me\",\"another\":1,\"nested\":{{\"this\":2}}}} -H Content-Type:application/json".format(HTTPBIN_URL), "-z wfuzzp --zD $$PREVFILE$$ -u FUZZ --field r.params.post.nested.this", [2], None), + ("test_json_nested2", "-z list --zD anything -u {}/FUZZ -d {{\"test\":\"me\",\"another\":1,\"nested\":{{\"this\":2}}}} -H Content-Type:application/json".format(HTTPBIN_URL), "-z wfuzzp --zD $$PREVFILE$$ -u FUZZ --field r.params.post.another", [1], None), # field fuzz values ("test_desc_fuzz", "-z range,1-1 {}/FUZZ".format(HTTPBIN_URL), "-z wfuzzp,$$PREVFILE$$ FUZZ", ["http://localhost:9000/1"], None), @@ -443,7 +445,7 @@ def duplicate_tests(test_list, group, test_gen_fun): def create_savedsession_tests(test_list, test_gen_fun): """ - generates wfuzz tests that run 2 times with recipe input, expecting same results. + generates wfuzz tests that run 2 times with a saved session, expecting same results. """ for test_name, prev_cli, next_cli, expected_res, exception_str in test_list: