aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | | only use annotated tags for version calculationMaximilian Hils2018-01-071-1/+1
| | |
* | | avoid TLS/SSL ambiguity for Cert classThomas Kriechbaumer2018-01-073-15/+15
| | |
* | | rename TLS/SSL-related functionsThomas Kriechbaumer2018-01-0611-49/+49
| | | | | | | | | | | | | | | | | | SSL is an outdated protocol superseeded by TLS. Although the commonly used library is called OpenSSL, it is no reason to still use outdated language for function names.
* | | rename TLS/SSL-related attributesThomas Kriechbaumer2018-01-065-10/+10
| | | | | | | | | | | | | | | | | | SSL is an outdated protocol superseeded by TLS. Although the commonly used library is called OpenSSL, it is no reason to still use outdated language for attributes.
* | | refactor common.format_keyvalsMaximilian Hils2018-01-052-13/+25
| | | | | | | | | | | | | | | | | | | | | the semantics here were really quite unclear, now it is hopefully a bit more obvious what's happening. Once we are Python 3.6+ exclusively, we may consider changing the signature to accept a (order-preserving) dict instead of a list.
* | | fix test flow timestamps to values that don't overflow in certain timezonesMaximilian Hils2018-01-054-14/+10
| | |
* | | fix #2470Maximilian Hils2018-01-041-1/+4
| | |
* | | do not add leading zeroes to .dev version part.Maximilian Hils2018-01-041-1/+1
|/ / | | | | | | | | wheel normalizes to no leading zeroes, and we don't want to special-case that.
* | Merge pull request #2733 from mitmproxy/pyinstallerMaximilian Hils2017-12-302-13/+23
|\ \ | | | | | | Update PyInstaller, add dev version info to builds.
| * | single-source version processingMaximilian Hils2017-12-302-13/+23
| | |
* | | Merge pull request #2703 from mhils/test-defaultkeysMaximilian Hils2017-12-301-0/+23
|\ \ \ | | | | | | | | Test that default key bindings are valid commands
| * | | test that defaultkeys are valid commandsMaximilian Hils2017-12-291-0/+23
| |/ /
* | | fix Flow.kill behaviourMaximilian Hils2017-12-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This now just sets a kill reply instead of committing directly. First, this seems like the more sane thing to do. Second, we have an iffy race condition where we call Reply.commit() before the addonmanager finishes its invocation, the proxy thread then progresses and sets a new flow.reply attribute, and the addonmanager then gets confused when finishing. This commit doesn't fix that, but mitigates it for Flow.kill which is now committed by the addonmanager.
* | | websocket: add flow kill testThomas Kriechbaumer2017-12-291-0/+19
| | |
* | | websocket: test killableThomas Kriechbaumer2017-12-281-0/+15
| | |
* | | websocket: docs++ and kill messagesThomas Kriechbaumer2017-12-271-0/+6
| | | | | | | | | | | | fixes #2724
* | | Display "*" when listening on all interfacesMaximilian Hils2017-12-261-0/+2
|/ / | | | | | | | | | | | | | | | | | | The set of people who understand "0.0.0.0" (and/or "::") is a subset of the set of people who understand "*", so we can make things easier to understand by using the less technical notation. Empirical Evidence: - https://discourse.mitmproxy.org/t/unable-to-use-mitmproxy-on-windows/735 - https://discourse.mitmproxy.org/t/how-to-view-the-proxy-servers-url/23
* | @concurrent decorator works for class methods. (#2708)fate02017-12-261-1/+1
| | | | | | | | | | * @concurrent decorator should works for class methods * modify test for @concurrent decorator in class. * add docs
* | cuts: don't crash when retrieving header of a non-existent responseAldo Cortesi2017-12-201-0/+5
| |
* | commander: command argument underlayAldo Cortesi2017-12-201-0/+71
| | | | | | | | Display context-sensitive argument types as an "underlay" in commander.
* | commander: palette entries, highlight errorsAldo Cortesi2017-12-202-2/+15
| | | | | | | | | | | | | | - Add palette entries specific to commander - Highlight errors - Introduce an Unknown type to keep track of extra unknown arguments to commands
* | commander: highlight commandsAldo Cortesi2017-12-202-12/+23
| | | | | | | | Step 1 of the fancification of commander.
* | commands: partial parser now returns help for remaining argumentsAldo Cortesi2017-12-192-57/+37
| |
* | types: add validation to partial parserAldo Cortesi2017-12-192-15/+16
| |
* | types: use new type validation mechanism in commandsAldo Cortesi2017-12-193-35/+4
| |
* | types: add validation functionsAldo Cortesi2017-12-191-0/+42
| |
* | types: cleanups and minor refactoringsAldo Cortesi2017-12-191-12/+12
| |
* | Merge pull request #2702 from Kriechi/fix-2640Thomas Kriechbaumer2017-12-183-1/+42
|\ \ | | | | | | improve websocket dumps
| * | add testsThomas Kriechbaumer2017-12-182-1/+16
| | |
| * | fix #2640Thomas Kriechbaumer2017-12-181-0/+12
| | |
| * | websocket: support domain and url filtersThomas Kriechbaumer2017-12-181-0/+14
| | |
* | | commands: refactor typesAldo Cortesi2017-12-185-62/+200
|/ / | | | | | | | | | | | | The type system was scattered over a number of places, making it hard to follow. This collects all command types in types.py, and completion, validation and parsing for each type is centralised. We should use the same mechanism for options.
* | Merge pull request #2690 from cortesi/typesAldo Cortesi2017-12-187-6/+6
|\ \ | | | | | | mitmproxy.types -> mitmproxy.coretypes
| * | mitmproxy.types -> mitmproxy.coretypesAldo Cortesi2017-12-177-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The types name is valuable, and we have a better use for it in collecting and exposing types for options and commands. The coretypes module should probably be split up anyway - it contains a threading base class, a few container objects, and the defintion of our serialization protocol. I was tempted to rename it to "uncagegorized" for the sake of honesty.
* | | commands: minor refactoring and command renamingAldo Cortesi2017-12-171-10/+9
|/ /
* | Disable implicit JS test asset generationAldo Cortesi2017-12-171-1/+1
| | | | | | | | | | | | | | | | | | | | The JS test assets depend in a brittle way on the details of the tflow() utility functions. We shouldn't have to fix JS tests when adjusting these. Options: - Manually generate the test assets in a script. - Define the JS assets without using tflow, so they don't unexpextedly vary.
* | minor: fix key bindings, adjust flow command presentationAldo Cortesi2017-12-171-1/+1
| | | | | | | | Fixes #2681
* | command cuts: add completionAldo Cortesi2017-12-173-59/+64
| | | | | | | | | | | | - Remove shortcuts for request, response, etc. - we don't need them if we have completion - Restrict cuts specification to a set of prefixes - Extend cuts to add a few more items
* | commands: Reassess the cuts APIAldo Cortesi2017-12-172-73/+32
| | | | | | | | | | Make the cuts API more transparent. Cut specifications are no longer a centrally resolved core type, and flows are now passed explicitly.
* | commander: test++Aldo Cortesi2017-12-151-6/+48
| |
* | command: path completionAldo Cortesi2017-12-152-72/+13
| |
* | command: recursive command parsingAldo Cortesi2017-12-151-0/+19
| | | | | | | | This lets us complete commands passed to commands correctly.
* | Merge pull request #2678 from mhils/console-startup-eventsAldo Cortesi2017-12-151-0/+15
|\ \ | | | | | | Fix console logging during startup
| * | improve eventstore truncationMaximilian Hils2017-12-151-0/+15
| | |
* | | commands: emit types from partial parser, implement choice completionAldo Cortesi2017-12-151-2/+22
| | |
* | | commander: tab completion for command namesAldo Cortesi2017-12-151-0/+25
| | |
* | | WIP: autocompletionAldo Cortesi2017-12-152-15/+38
| | |
* | | commands: add a parser for partial commandsAldo Cortesi2017-12-151-0/+10
| | | | | | | | | | | | We only return Cmd and str types for the moment.
* | | commands: add a Cmd argument typeAldo Cortesi2017-12-152-3/+4
| | | | | | | | | | | | | | | | | | This represents a command passed as an argument. Also split arguments from command values themselves, making the command help for meta-commands much clearer.
* | | Introduce a custom widget for command editingAldo Cortesi2017-12-151-0/+37
|/ / | | | | | | | | The builtin urwid.Edit widget is not sufficiently flexible for what we want to do.