aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* unit test coverage ++Aldo Cortesi2011-03-204-0/+27
|
* Add a stickyauth option.Aldo Cortesi2011-03-201-0/+40
| | | | | | | This allows us to replay an HTTP Authorization header, in the same way as we replay cookies using stickycookies. This lets us conveniently get at HTTP Basic Auth protected resources through the proxy, but is not enough to do the same for HTTP Digest auth. We'll put that on the todo list.
* Reverse order of flows in mitmproxy.Aldo Cortesi2011-03-201-6/+6
| | | | It matches user expectations much better to have new flows appended to the bottom.
* Revamp key generation.Aldo Cortesi2011-03-182-1/+7
| | | | | | | | | | | We now create three different files in the .mitmproxy directory when a dummy CA is made: mitmproxy-ca.pem - the CA, including private key mitmproxy-ca-cert.p12 - A pkcs12 version of the certificate, for distribution to Windows. mitmproxy-ca-cert.pem - A PEM version of the certificate, for distribution to everyone else.
* Interrupt interception when deleting an intercepting flow.Aldo Cortesi2011-03-151-3/+0
| | | | Prompting the user for this is annoying.
* Fix hang on shutdown.Aldo Cortesi2011-03-152-2/+3
|
* Do pre-processing of requests before replay.Aldo Cortesi2011-03-151-0/+1
| | | | | This enables scripts, anticache, server playback and sticky cookies for request replays.
* Improve responsiveness of request and response viewing.Aldo Cortesi2011-03-151-0/+31
| | | | | | | | - Computing the view of a large body is expensive, so we introduce an LRU cache to hold the latest 20 results. - Use ListView more correctly, passing it individual urwid.Text snippets, rather than a single large one. This hugely improves render time.
* Fix unit tests on OSX when a system proxy is configured.Aldo Cortesi2011-03-141-4/+7
|
* Fix flow formatting unit tests.Aldo Cortesi2011-03-141-4/+2
|
* Fix a traceback sometimes triggered viewing a connection with no response.Aldo Cortesi2011-03-131-1/+2
|
* Add client plaback to mitmproxy.Aldo Cortesi2011-03-131-2/+4
|
* flow.py 100% test coverageAldo Cortesi2011-03-131-1/+11
|
* mitmproxy prompted input now display previously set value.Aldo Cortesi2011-03-132-5/+5
| | | | | E.g. if you set a limit, then re-enter the limit prompt, you start with the currently set value.
* Unit tests for proxy.read_chunkedAldo Cortesi2011-03-121-0/+17
|
* Unit tests for cmdline.pyAldo Cortesi2011-03-121-0/+29
|
* console.py 100% test coverageAldo Cortesi2011-03-121-1/+16
|
* netstring.py 100% unit test coverage.Aldo Cortesi2011-03-121-0/+10
|
* Make mitmdump handle invalid serialized data gracefully.Aldo Cortesi2011-03-111-0/+10
|
* Display Errors and killed connections in mitmdump.Aldo Cortesi2011-03-111-7/+0
|
* Add --norefresh to stop refreshing server playback to mitmdump.Aldo Cortesi2011-03-112-1/+12
| | | | Also, make cookie parsing for refreshing more error-tolerant.
* Stub out refresh for server-side replay.Aldo Cortesi2011-03-091-1/+19
|
* Add an --anticache option to mitmdump.Aldo Cortesi2011-03-092-2/+10
| | | | | | | This removes all headers that might cause a server to return 304-not-modified. For now, all the new features are going into mitmdump - everything will be ported over to mitmproxy once I have the feature set locked down.
* Store timestamps on flow components as a UTC time tuple.Aldo Cortesi2011-03-071-1/+1
| | | | | | Format is: (tm_year,tm_mon,tm_mday,tm_hour,tm_min, tm_sec,tm_wday,tm_yday,tm_isdst)
* Make mitmdump server playback also exit by default.Aldo Cortesi2011-03-061-6/+11
| | | | Like client playback, the --keepserving option makes mitmdump keep serving.
* Make mitmdump exit after client replay is complete by default.Aldo Cortesi2011-03-061-4/+10
| | | | Add an option --keepserving to make it keep serving after replay.
* Add flow_count and active_flow_count methods to flow.State.Aldo Cortesi2011-03-061-14/+22
| | | | Use these in unit tests where sensible.
* Bump unit tests, rearrange mitmdump command-line options slightly.Aldo Cortesi2011-03-062-6/+23
|
* Add client replay options to mitmdump.Aldo Cortesi2011-03-065-82/+79
|
* Reorganize test suite to remove confusion between test utils and libmproxy ↵Aldo Cortesi2011-03-056-187/+191
| | | | utils.
* Massage namespace to make room for client replay.Aldo Cortesi2011-03-052-10/+15
| | | | Mostly replay -> server_replay
* Basic client playback state structure.Aldo Cortesi2011-03-041-4/+26
|
* Add an indicator that sticky cookies have been applied in mitmdump.Aldo Cortesi2011-02-251-0/+4
|
* Move stringification funcs from proxy to dump.Aldo Cortesi2011-02-252-2/+10
|
* Minor housekeeping - unused code, nocover directives.Aldo Cortesi2011-02-241-3/+0
| | | | 95% test coverage.
* More mature sticky cookie primitive. Use it in console.py.Aldo Cortesi2011-02-241-8/+48
|
* Start abstracting out sticky cookie state.Aldo Cortesi2011-02-241-0/+12
|
* Add a way for users to specify header significance in server replay.Aldo Cortesi2011-02-231-4/+19
| | | | | | Also add the --rheader command-line option to mitmdump to let the user specify an arbitrary number of significant headers. The default is to treat no headers as significant.
* Move script hooks into the flow primitives.Aldo Cortesi2011-02-211-8/+8
| | | | This lets handle scripts in corner cases like playback situations more easily.
* Add --kill option to mitmdumpAldo Cortesi2011-02-213-5/+20
| | | | | | If this option is passed all requests that are not part of a replayed conversation are killed. If the option is not passed, such requests are passed through to the server as usual.
* First pass of playback function for mitmdump.Aldo Cortesi2011-02-213-0/+37
|
* Add a simple server playback state object.Aldo Cortesi2011-02-212-1/+38
| | | | | | | | We use a loose hash to match incoming requests with recorded flows. At the moment, this hash is over the host, port, scheme, method, path and content of the request. Note that headers are not included here - if we do want to include headers, we would have to do some work to normalize them to remove variations between user agents, header order, etc. etc.
* Clean up and strip down netstrings module.Aldo Cortesi2011-02-201-7/+0
|
* Certificates are now generated in a temporary per-session directory.Aldo Cortesi2011-02-201-6/+6
| | | | | | This means that certificates don't accumulate in the conf directory, users don't have to clear certificates if the CA is regenerated, and the user can specify a custom CA without invalid certificates being loaded inadvertently.
* Revamp SSL configuration.Aldo Cortesi2011-02-202-2/+7
| | | | | | | | - Move option parsing utiliities to proxy.py - Don't have a global config object. Pass it as an argument to ProxyServer. - Simplify certificate generation logic.
* Clean up certificate generation.Aldo Cortesi2011-02-201-11/+33
| | | | | | | | | | | | - Use templates for config files. We can re-introduce customization of the certificate attributes when we need them. - Split CA and cert generation into separate functions. - Generation methods provide an error return when generation fails. - When the user explicitly specifies a certificate, we don't generate it, but fail if it doesn't exist.
* Bump unit tests for flow.py and dump.pyAldo Cortesi2011-02-203-12/+26
|
* Implement state loading that doesn't change object identity.Aldo Cortesi2011-02-201-1/+30
| | | | We need this to let us load state from copied Flows returned from scripts.
* Bump test coverage to 100% for flow.pyAldo Cortesi2011-02-191-6/+22
|
* Fix serialization when a Request has no associated client connection.Aldo Cortesi2011-02-191-0/+4
|