aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* cibuild: start building version awarenessAldo Cortesi2018-05-251-1/+3
|
* cibuild: more accurate PR test, better dump outputAldo Cortesi2018-05-241-2/+2
|
* cibuild: fix docker upload condition, expand testsAldo Cortesi2018-05-241-4/+35
|
* cibuild: extract upload conditionsAldo Cortesi2018-05-241-1/+8
|
* cibuild: add docker tag calculation to environAldo Cortesi2018-05-241-0/+9
|
* release: include release directory in coverageAldo Cortesi2018-05-241-3/+29
| | | | With lots of exclusions for now
* cibuild: Consolidate build environment and add testsAldo Cortesi2018-05-241-0/+95
|
* clientreplay: fix racy tests harderAldo Cortesi2018-05-181-0/+3
|
* websocket: inject messages via flowThomas Kriechbaumer2018-05-162-0/+55
|
* fix py36/37 escaping issuesThomas Kriechbaumer2018-05-141-6/+10
| | | | | | | | closes #3122 https://bugs.python.org/issue16285 https://bugs.python.org/issue12910 https://github.com/python/cpython/commit/21024f06622c4c55b666adb130797a4ee205d005
* command: handle string without terminal escaped charAldo Cortesi2018-05-121-0/+2
| | | | Fixes #2810
* script: revamp ephemeral script runningAldo Cortesi2018-05-121-5/+3
| | | | Fixes 2838
* commands: handle type errors on startupAldo Cortesi2018-05-121-3/+29
| | | | | fixes #3088 fixes #2787
* commands: if no explicit return type is specified, assume NoneAldo Cortesi2018-05-121-0/+13
| | | | | This is going to be a super common error for addon authors, so we might as well handle it.
* keymap: read keys from CONFDIR/keys.yaml by defaultAldo Cortesi2018-05-102-2/+3
|
* cadir -> confdirAldo Cortesi2018-05-107-13/+13
| | | | | We store a lot more than just the CAs in our configuration directory. Clarify the option name.
* console keybindings: define YAML-based format for console key binding ↵Aldo Cortesi2018-05-101-0/+94
| | | | persistence
* clientplayback: try to fix flaky replay testAldo Cortesi2018-05-081-0/+2
|
* Ditch the addon stdout wrapperAldo Cortesi2018-05-083-20/+0
| | | | | | This results in a 30% improvement in our core request throughput. Fixes #3102
* optmanager: refactor for coverage and clarityAldo Cortesi2018-05-081-1/+1
|
* benchmarks: quick-run scripts for mitmproxy and mitmdumpAldo Cortesi2018-05-082-0/+4
|
* benchmark: keep track of requests/responses seen by proxyAldo Cortesi2018-05-081-0/+10
|
* options: add the concept of deferred settingsAldo Cortesi2018-05-081-1/+10
| | | | | | | | | | | We've had a perpetual sequencing problem with addon startup. Users need to be able to specify options to addons on the command-line, before addons are actually loaded. This is only exacerbated with the new async core, where load order can't be relied on. This patch introduces deferred options. Options passed with "--set" on the command line are deferred if they are unknown, and are automatically applied by the addon manager once matching addons are registered and their options are defined.
* remove leftover processing_completeMaximilian Hils2018-05-061-3/+1
|
* Remove allowremote addon, add an improved take called blockAldo Cortesi2018-05-062-61/+63
| | | | | | | | | We now have two options: block_global blocks global networks, block_private blocks private networks. The block_global option is true by default, and block_private is false by default. The addon name is "block" so the options are correctly prefixed. Also make option documentation precise, reduce verbosity of logs.
* Merge pull request #3099 from Kriechi/fix-3024Aldo Cortesi2018-05-061-13/+35
|\ | | | | fix #3024
| * fix #3024Thomas Kriechbaumer2018-05-051-13/+35
| |
* | Remove custom eventsAldo Cortesi2018-05-031-15/+20
| | | | | | | | | | These were always weird, and were added to support exit when processing completed to mitmdump. We now have better ways to do this.
* | Remove the tick eventAldo Cortesi2018-05-023-21/+5
| | | | | | | | Mitmproxy: the tickless wonder.
* | taddons: remove has_eventAldo Cortesi2018-05-021-1/+0
| | | | | | | | We no longer use this anywhere, so ditch it.
* | Redesign keepservingAldo Cortesi2018-05-024-22/+43
| | | | | | | | | | | | | | | | - Instead of listening for a pseudo-event, we periodically check whether client replay, server replay or file reading is active. - Adjust server replay not to use tick. - Adjust readfile to expose a command to check whether reading is in progress.
* | commands: clarify command call interface, fix web app replayAldo Cortesi2018-05-024-19/+17
| |
* | client replay: expad and consolidate testsAldo Cortesi2018-05-012-76/+105
| |
* | client replay: re-designAldo Cortesi2018-04-306-59/+52
| | | | | | | | | | | | | | | | | | Re-design the way client replay works. Before, we would fire up a thread, replay, wait for the thread to complete, get the next flow, and repeat the procedure. Now, we have one replay thread that starts when the addon starts, which pops flows off a thread-safe queue. This is much cleaner, removes the need for busy tick, and sets the scene for optimisations like server connection reuse down the track.
* | client replay: move all client replay-related code into addonAldo Cortesi2018-04-275-85/+82
| |
* | Merge pull request #3078 from kajojify/expanduserAldo Cortesi2018-04-261-0/+4
|\ \ | | | | | | Fix #3002. Auto-expanding for tilda.
| * | Fix #3002. Auto-expandingMiroslav2018-04-261-0/+4
| | |
* | | Merge pull request #3071 from cortesi/ticklessAldo Cortesi2018-04-2638-268/+293
|\ \ \ | |/ / |/| | asyncio: shift script reloading out of the tick event
| * | test: shift test_data out of our public APIAldo Cortesi2018-04-2332-225/+216
| | |
| * | addons/script: improve relability of reload testAldo Cortesi2018-04-233-5/+11
| | | | | | | | | | | | | | | | | | The granularity of mtime is surprisingly bad. Make the tests more robust against this, and promote has_log back to a public method, now that we have a few legitimate examples.
| * | asyncio: shift script reloading out of the tick eventAldo Cortesi2018-04-239-52/+80
| | | | | | | | | | | | | | | | | | | | | The tick event is a nasty compromise, left over from when we didn't have an event loop. This is the first patch in a series that explores moving our built-in addons to managing coroutines on the eventloop directly for periodic tasks.
* | | fix pytest invocation errorsMaximilian Hils2018-04-253-3/+3
|/ /
* | Ignore signal errors on windows + various fixesAldo Cortesi2018-04-171-4/+5
| | | | | | | | | | | | | | | | - Ignore the NotImplementedError raised by add_signal_handler on Windows. - Entrypoints return an integer exit code, or None. Adjust our type annotations and code to suit. Fixes #3061
* | asyncio: clarify shutdown semanticsAldo Cortesi2018-04-164-20/+13
| | | | | | | | | | This patch clarifies proxy shutdown, and specifies that the master.shutdown() method is thread-save.
* | Clean up test/helper_tools directoryAldo Cortesi2018-04-165-51323/+0
| |
* | Improve benchmarkingAldo Cortesi2018-04-167-75/+64
|/ | | | | | | | | - The benchmark addon now manages setting up and tearing down the backend and traffic processes itself. - Use wrk instead of hey. I get more consistent results with this tool, and hey shows a strange tail-latency bump that seems artificial. - Make termination behaviour simpler. The bencmark revealed a bug where .done events were not called if the proxy was shut down by an addon.
* Merge pull request #3059 from obscure76/enh/issue-3053Aldo Cortesi2018-04-161-1/+1
|\ | | | | fix Python 3.6 variable type annotations #3053
| * fix Python 3.6 variable type annotations #3053oscure762018-04-141-1/+1
| |
* | Merge pull request #3050 from kira0204/error-scriptAldo Cortesi2018-04-152-7/+23
|\ \ | | | | | | Handling user script's exceptions, fix #2839
| * | Handling user script exceptions, fix #2839kira02042018-04-102-7/+23
| |/