aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* organize examplesMaximilian Hils2016-11-211-17/+22
| | | | | | | This commit is largely based on work by Thiago Arrais (@thiagoarrais) and Shane Bradfield (@l33tLumberjack). I wasn't really able to get their PR reasonably merged onto the latest master, so I reapplied their changes manually here and did some further improvements on that.
* rewrite absolute-form HTTP requests to relative form, fix #1759 (#1765)Maximilian Hils2016-11-201-0/+15
|
* tests: fix race conditionThomas Kriechbaumer2016-11-201-5/+15
|
* lint!Maximilian Hils2016-11-182-0/+2
|
* addons.view: clarify modification eventsAldo Cortesi2016-11-151-5/+11
| | | | | This adds a set of store modification events, and uses them for flow settings. This addresses a bug where settings could persist even after flows were deleted.
* addons.proxyauth: out with the old, in with the newAldo Cortesi2016-11-135-170/+29
| | | | | - Strip out old auth mechanisms, and enable addon - Disable web app auth for now - this should just use the Tornado auth stuff
* addons.proxyauth: complete and testAldo Cortesi2016-11-131-3/+119
|
* stub out proxyauth addonAldo Cortesi2016-11-131-0/+53
| | | | Stub out basic workings, add and test configure event.
* upstream_proxy_auth -> upstream_authAldo Cortesi2016-11-131-3/+3
| | | | Also clarify what this does in commandline help.
* Complete upstream authentication moduleAldo Cortesi2016-11-132-0/+21
| | | | | | | - Handles upstream CONNECT and regular requests, plus HTTP Basic for reverse proxy - Add some tests to make sure we can rely on the .via attribute on server connections.
* Refine handling of HTTP CONNECTAldo Cortesi2016-11-122-56/+27
| | | | | | | - CONNECT requests do not generate the usual http events. Instead, they generate the http_connect event and handlers then have the option of setting an error response to abort the connect. - The connect handler is called for both upstream proxy and regular proxy CONNECTs.
* Add the http_connect event for HTTP CONNECT requestsAldo Cortesi2016-11-121-3/+15
|
* Upstream proxy auth to addonAldo Cortesi2016-11-123-25/+54
|
* Test failure during 100-continueAldo Cortesi2016-11-121-11/+31
| | | | | | | | | Also: - Remove duplicate and unused code - Tighten scope of HttpReadDisconnect handler - we only want to ignore this for the initial read, not for the entire block that includes things like the expect handling.
* Bug: ask requestheaders before request body is readAldo Cortesi2016-11-121-0/+48
| | | | Also add the beginnings of a test suite to exercise issues like this.
* http2: add push-promise metadata testThomas Kriechbaumer2016-11-051-0/+6
|
* Remove deprecated interfacesAldo Cortesi2016-11-041-4/+4
|
* script.concurrent: tests to taddonsAldo Cortesi2016-11-042-24/+24
|
* addons: convert last of the test suite to taddonsAldo Cortesi2016-11-045-94/+92
|
* addons.setheaders: fix configure bug, tests to taddonsAldo Cortesi2016-11-041-49/+45
|
* addons.view: test suite to 100%Aldo Cortesi2016-11-041-15/+55
| | | | This takes coverage for all of /addons to 100%
* addons.view: test improvementsAldo Cortesi2016-11-031-1/+51
|
* addons.streambodies: 100% test coverageAldo Cortesi2016-11-031-13/+11
|
* addons.serverplayback: 100% test coverageAldo Cortesi2016-11-032-271/+318
|
* addons.serverplayback: test suite to taddonsAldo Cortesi2016-11-031-58/+61
|
* addons.script: 100% test coverageAldo Cortesi2016-11-031-2/+49
|
* addons.script: convert to test.taddonsAldo Cortesi2016-11-031-100/+98
|
* addons.onboarding: remove duplicate codeAldo Cortesi2016-11-031-1/+1
|
* addons.intercept: 100% test coverageAldo Cortesi2016-11-031-0/+5
|
* streamfile: make options less crazyAldo Cortesi2016-11-032-37/+5
| | | | | | | Instead of a (file, mode) tuple, move to "streamfile" as the path, and "streamfile_append" to specify if we should append or not. Leave the command-line options intact for now.
* FileStreamer -> StreamFileAldo Cortesi2016-11-031-14/+13
| | | | options.wfile -> options.streamfile
* addons: filestreamer test cov to 100%Aldo Cortesi2016-11-031-7/+44
| | | | | Also address a bug in taddons that caused options changes that raised errors to be retained rather than rolled back.
* addons filstreamer: tests and bugfixesAldo Cortesi2016-11-031-25/+13
| | | | | - Move tests to taddons - Fix a bug where options updates caused streaming to halt
* Change antiquated test cipher suitesAldo Cortesi2016-11-031-4/+4
| | | | This breaks Travis, possibly due to OpenSSL version.
* addons: dumper spit and polishAldo Cortesi2016-11-022-7/+151
| | | | | | | - 100% test coverage - Cleanups - Add test/mitmproxy/addons/dumperview.py, a small utility for viewing dumper output variations
* tests: convert test_dumper to use taddonsAldo Cortesi2016-11-022-29/+19
|
* tests: client_playback coverageAldo Cortesi2016-11-023-28/+60
|
* tests: pathod/tutils.py -> pathod/tservers.pyAldo Cortesi2016-11-0212-45/+40
| | | | And remove all aliases for mitmproxy.test.tutils
* tests: clean up test/mitmproxy/tutils.pyAldo Cortesi2016-11-0226-165/+149
| | | | Remove aliases, use mitmproxy/test/tutils instead.
* tests: minor cleanup for tests/mitmproxy/tutils.pyAldo Cortesi2016-11-022-17/+13
|
* addons anticom, anticache: expand tests, new trussAldo Cortesi2016-11-013-27/+26
|
* Remove addons.StateAldo Cortesi2016-11-013-168/+5
| | | | | - Do a first-pass port of mitmweb. Some stuff still broken. - Remove more all State tests from the test suite
* Replace addons.state in test suiteAldo Cortesi2016-11-012-14/+30
| | | | Use a super-simple flow recorder instead.
* console: add caching sort keysAldo Cortesi2016-10-301-32/+27
| | | | | | | | | | | This is a tad complicated. The underlying sorted list implementation expects the sort key to be stable for the lifetime of the object. However, if we sort by size, for instance, the sort order changes as the flow progresses through its lifecycle. We address this through two means: - Let order keys cache the sort value by flow ID. - Add a facility to refresh items in the list by removing and re-adding them when they are updated.
* console: re-add follow focusAldo Cortesi2016-10-301-0/+5
|
* console: "v" to reverse flow orderAldo Cortesi2016-10-301-4/+13
|
* console: o for flow orderAldo Cortesi2016-10-301-1/+5
| | | | | | "o" shortcut and --order cmdline option to change flow order. Options is now bound to "O".
* addons.view: Add first-class support for markingAldo Cortesi2016-10-302-93/+12
| | | | | | | | | Marking now works differently - it's no longer just another filter, it's applied in addition to the filter. This means you can apply a filter, mark some flows, and then toggle between marked and unmarked flows matching the filter. I'm leaving the filter for marked flows intact - it will come in handy in other situations.
* console: Port from state to viewAldo Cortesi2016-10-301-25/+19
| | | | | First phase of the port - basic flow list and flow view functionality working. More to come.
* Add options.default_contentviewAldo Cortesi2016-10-301-4/+4
| | | | | This is the first step in a longer process of revamping content views. For the moment, the option is not exposed on the command line.