aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #2109Ujjwal Verma2017-04-091-0/+7
|
* fixes ipv6 authority form parsing in CONNECTRobert C Jensen2017-04-071-0/+1
|
* Add tests for set_focusNikhil Soni2017-03-291-0/+16
|
* addon loader: add boot_into, which replaces returning from start()Aldo Cortesi2017-03-256-12/+114
| | | | | While we're here, expand test coverage for addonmanager to 100%, and promote to individual coverage.
* addons: start -> load throughoutAldo Cortesi2017-03-257-26/+26
|
* bump h2Thomas Kriechbaumer2017-03-241-3/+11
|
* Merge pull request #2207 from nikofil/scripts-redirect-stdoutAldo Cortesi2017-03-242-6/+23
|\ | | | | scripts: redirect stdout to ctx.log.warn
| * scripts: redirect stdout to ctx.log.warnNikos Filippakis2017-03-242-6/+23
| | | | | | | | | | | | | | Redirect messages written to stdout in scripts to ctx.log.warn. (closes #1530) Signed-off-by: Nikos Filippakis <nikolaos.filippakis@cern.ch>
* | optmanager: make serialization and loading more robustAldo Cortesi2017-03-241-0/+14
|/ | | | Also handle errors in console options manager.
* move examples tests (#2199)Thomas Kriechbaumer2017-03-224-85/+115
|
* Factor out an io moduleAldo Cortesi2017-03-205-3/+3
| | | | | Include tnetstring - we've made enough changes that this no longer belongs in contrib.
* options: reraise when there's an error with a partial updateAldo Cortesi2017-03-191-2/+6
| | | | Fixes #2174
* options: choices for content views and tighten console order specAldo Cortesi2017-03-191-5/+3
| | | | Also clean up some leftovers from filter option name change.
* dumper, mitmdump: kill filtstrAldo Cortesi2017-03-192-4/+4
| | | | | Dumper now also uses view_filter. Passing arguments to mitmdump is now precisely equivalent to setting both filestream_filter and view_filter.
* streamfile: add streamfile_filter and use it instead of filtstrAldo Cortesi2017-03-191-3/+5
|
* optmanager: test coverageAldo Cortesi2017-03-191-1/+8
|
* console options: add an overlay grid editor for sequence optionsAldo Cortesi2017-03-191-0/+12
|
* optmanager: cope with bound methods in .subscribeAldo Cortesi2017-03-191-0/+15
| | | | Fixes #2122
* options cleanupsAldo Cortesi2017-03-191-3/+3
| | | | | | - Move default client ciphers - no need to have a 10-line string default. - Add some style guidance on options help - Be consistent about reflowing options help
* Rip out master handler mechanismAldo Cortesi2017-03-171-1/+0
| | | | | All events are now handled by addons, and we no longer support any events on master.
* Merge pull request #2168 from cortesi/handlersMaximilian Hils2017-03-1617-160/+113
|\ | | | | Rip out old handlers mechanism - all events are now handled in addons
| * Rip out master handler mechanismAldo Cortesi2017-03-1612-57/+43
| | | | | | | | | | All events are now handled by addons, and we no longer support any events on master.
| * Remove last handlers in test suiteAldo Cortesi2017-03-161-35/+21
| | | | | | | | | | | | While we're here, make checking that there are NO logs on the proxy more efficient by setting a short timeout. This reduces total test suite running time by 15% on my system.
| * Remove test handlers by using taddons.RecordingMasterAldo Cortesi2017-03-168-68/+49
| | | | | | | | | | This also means expanding and tweaking the recording master API, which we reflect through the current test suite
| * Move dump handlers to addonAldo Cortesi2017-03-161-1/+1
| |
* | Fix test_format_xml with dot in pathFelix Yan2017-03-161-1/+1
|/ | | When the path contains dot ".", replacing all dots will generate a non-exist result and raises a FileNotFoundError. Replacing only the last dot fixes this.
* Merge pull request #2152 from cortesi/readfileAldo Cortesi2017-03-1618-93/+194
|\ | | | | Extract flow reading into addons
| * Add a light-weight custom event system, use it for keepservingAldo Cortesi2017-03-1613-46/+58
| | | | | | | | | | | | | | This patch implements the lightweight event system I propose in #2144, adds a custom event "processing_complete" that is triggered after file read, client replay and server replay, and introduces a KeepServing addon to handle this for mitmdump.
| * Clean up addonmanager interfaceAldo Cortesi2017-03-163-6/+8
| | | | | | | | | | Clarify the plethora of invocation methods we've sprouted, correct some usages in the codebase.
| * Extract flow reading into addonsAldo Cortesi2017-03-155-53/+140
| | | | | | | | | | | | | | | | This patch moves the final pieces of master functionality into addons. - Add a ReadFile addon to read from file - Add a separate ReadStdin addon to read from stdin, only used by mitmdump - Remove all methods that know about io and serialization from master.Master
* | add Request.makeMaximilian Hils2017-03-152-2/+28
|/
* stateobject: automatically change id when copyingMaximilian Hils2017-03-142-4/+16
|
* add connection idsMaximilian Hils2017-03-141-0/+24
|
* Merge pull request #2149 from mhils/multidictview-copyMaximilian Hils2017-03-141-0/+9
|\ | | | | Add MultiDictView.copy()
| * add MultiDictView.copyMaximilian Hils2017-03-141-0/+9
| |
* | Merge pull request #2145 from mhils/neMaximilian Hils2017-03-143-11/+1
|\ \ | | | | | | py3: __ne__ delegates to __eq__ by default
| * | py3: __ne__ delegates to __eq__ by defaultMaximilian Hils2017-03-143-11/+1
| | |
* | | Merge pull request #2120 from ujjwal96/replace-from-fileMaximilian Hils2017-03-141-33/+36
|\ \ \ | |_|/ |/| | Replace from file through replacement editor #1458
| * | Merge remote-tracking branch 'origin/master' into pr-2120Maximilian Hils2017-03-1216-319/+321
| |\| | | | | | | | | | | | | Conflicts: test/mitmproxy/addons/test_replace.py
| * | replacements: error right away when file does not existMaximilian Hils2017-03-121-28/+30
| | |
| * | minor fixesMaximilian Hils2017-03-121-23/+20
| | |
| * | Fixed Replacement testUjjwal Verma2017-03-091-5/+5
| | |
* | | Enable custom options in config filesAldo Cortesi2017-03-141-6/+9
| | | | | | | | | | | | | | | We also now ignore unknown options in config files by default, and print a warning if verbosity is incremented.
* | | Move serialization methods out of OptionsAldo Cortesi2017-03-141-15/+15
| | | | | | | | | | | | | | | | | | Attributes on options share a namespace with options themselves. It's getting too crowded on our Options object, so let's shift some obvious stuff into the module.
* | | Optmanager: handle unknown options in value setsAldo Cortesi2017-03-141-0/+3
| | |
* | | Show custom addon options in --options outputAldo Cortesi2017-03-141-2/+2
| | |
* | | Enable custom options for addonsAldo Cortesi2017-03-1411-29/+62
| |/ |/| | | | | | | | | | | | | - Add an options parameter to the start() event. This is to be used by addons on startup to add custom options. - Add a running() event that is called once the proxy is up and running. - With the new paradigm we can't log during master __init__, so add a tiny termstatus addon to print proxy status to terminal once we're running.
* | nuke tutils.tmpdir, use pytest tmpdirThomas Kriechbaumer2017-03-1212-329/+273
| |
* | Merge pull request #2118 from lymanZerga11/patch-3Maximilian Hils2017-03-111-0/+1
|\ \ | | | | | | Update proxyauth.py to add proxyauth metadata
| * | add testslymanZerga112017-03-091-1/+1
| | |