aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2269 from mhils/issue-2250Maximilian Hils2017-04-261-0/+4
|\ | | | | fix #2250, add type info to cookie module
| * fix #2250, add type info to cookie moduleMaximilian Hils2017-04-261-0/+4
| |
* | Merge pull request #2258 from mhils/readfileMaximilian Hils2017-04-263-103/+98
|\ \ | | | | | | Integrate readstdin into readfile
| * | separate reading from stdin into its own addonMaximilian Hils2017-04-261-54/+63
| | |
| * | integrate readstdin into readfile addonMaximilian Hils2017-04-262-83/+63
| | |
| * | typecheck: add support for typing.AnyMaximilian Hils2017-04-261-0/+6
| | |
* | | Merge pull request #2268 from mhils/issue-2257Maximilian Hils2017-04-263-62/+98
|\ \ \ | |_|/ |/| | fix #2257
| * | fix #2257Maximilian Hils2017-04-263-62/+98
| |/
* / fix #2228Maximilian Hils2017-04-262-3/+2
|/
* Merge pull request #2262 from Kriechi/reduced-coverage++Aldo Cortesi2017-04-2611-18/+16
|\ | | | | improve tests (extracted from #2011)
| * improve testsThomas Kriechbaumer2017-04-2511-18/+16
| |
* | configure(options, updated) -> configure(updated)Aldo Cortesi2017-04-266-11/+15
| | | | | | | | | | Options are now available globally on ctx, so the first argument of configure is redundant.
* | Move options into ctxAldo Cortesi2017-04-263-147/+150
| | | | | | | | | | | | | | Many addons currently save options on configure(), either as individual options or sometimes by saving the entire options object. The current options should simply be available on the ctx object, simplifying state management for addons considerably.
* | Remove watchdog, solidify script testingAldo Cortesi2017-04-265-117/+78
| | | | | | | | | | | | | | | | - Remove the watchdog dependency. We now just stat the script file every 2 seconds to check for an updated mtime. - Further solidify our script testing, and in particular make the example tests nicer. These should exemplify how we want users to test their own addon scripts. More work on addon testing to follow.
* | Revamp how addons workAldo Cortesi2017-04-2518-228/+202
|/ | | | | | | | | | | | | | | | | | | - Addons now nest, which means that addons can manage addons. This has a number of salutary effects - the scripts addon no longer has to poke into the global addons list, we no longer have to replace/remove/boot-outof parent addons when we load scripts, and this paves the way for making our top-level tools into addons themselves. - All addon calls are now wrapped in a safe execution environment where exceptions are caught, and output to stdout/stderr are intercepted and turned into logs. - We no longer support script arguments in sys.argv - creating an option properly is the only way to pass arguments. This means that all scripts are always directly controllable from interctive tooling, and that arguments are type-checked. For now, I've disabled testing of the har dump example - it needs to be moved to the new argument handling, and become a class addon. I'll address that in a separate patch.
* 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
| |