campbellC / third-wheel

A rust implementation of a man-in-the-middle proxy
MIT License
71 stars 19 forks source link

Add some proper testing with pathod/pathoc #19

Open campbellC opened 4 years ago

campbellC commented 4 years ago

Pathod and pathoc are tools from the mitmproxy project for generating pathological requests. I've added code in test/ for getting a docker image running with these tools and some example requests. Unfortunately, the docs seem to be out of date (v2.0.2 is the latest documented) and the example commands given are not working.

This definitely looks like a useful set of tools for testing the proxy and fuzzing it for edge cases.

Acceptance criteria: Tests print useful logging on failure (i.e. how to recreate the thing that caused the failure) Optional flag for longer, more edge case fuzz testing