Matthew Shao
de9ecb7c30
[web] Add JS coverage to codecov.
2017-03-26 09:36:18 +08:00
Matthew Shao
31a45ddaaa
[web] Reach 100% coverage for ducks/settings.js
2017-03-26 09:34:45 +08:00
Maximilian Hils
6f00c1bc5d
Merge pull request #2213 from Kriechi/concurrent-coverage
...
fix #2201
2017-03-25 17:16:31 +01:00
Thomas Kriechbaumer
20776cf2fa
fix #2201
2017-03-25 16:41:53 +01:00
Aldo Cortesi
c6a16e95e8
Merge pull request #2206 from cortesi/addonload
...
addon refactoring
2017-03-25 11:42:43 +13:00
Aldo Cortesi
65f0885bd6
addon loader: add boot_into, which replaces returning from start()
...
While we're here, expand test coverage for addonmanager to 100%, and promote to
individual coverage.
2017-03-25 10:48:12 +13:00
Aldo Cortesi
d69a411303
addons: an addonmanager.Loader is now passed to the load() event
2017-03-25 10:48:12 +13:00
Aldo Cortesi
541c1e8b9f
addons: start -> load throughout
2017-03-25 10:48:12 +13:00
Maximilian Hils
b531353ee0
Merge pull request #2208 from Kriechi/bump-h2
...
bump h2
2017-03-24 21:43:14 +01:00
Thomas Kriechbaumer
ef9f0e22ea
bump h2
2017-03-24 21:27:14 +01:00
Aldo Cortesi
335861f490
Merge pull request #2207 from nikofil/scripts-redirect-stdout
...
scripts: redirect stdout to ctx.log.warn
2017-03-24 14:58:33 +13:00
Nikos Filippakis
abf291b0f9
scripts: redirect stdout to ctx.log.warn
...
Redirect messages written to stdout in scripts to ctx.log.warn.
(closes #1530 )
Signed-off-by: Nikos Filippakis <nikolaos.filippakis@cern.ch>
2017-03-24 02:35:02 +01:00
Aldo Cortesi
439c113989
Merge pull request #2204 from cortesi/consoleopts
...
console options: load and save options to and from file
2017-03-24 10:05:37 +13:00
Aldo Cortesi
0d3e2c6adf
optmanager: make serialization and loading more robust
...
Also handle errors in console options manager.
2017-03-24 09:37:17 +13:00
Aldo Cortesi
3a35c69986
Merge pull request #2203 from cortesi/malformedreq
...
Don't pass malformed request objects to our error handler
2017-03-24 09:30:09 +13:00
Aldo Cortesi
eb66456d16
console: read and write options to and from file
2017-03-23 11:28:08 +13:00
Aldo Cortesi
44c3a24f8e
Don't pass malformed request objects to our error handler
2017-03-23 10:48:20 +13:00
Maximilian Hils
1e81747a2a
Merge pull request #2200 from MatthewShao/jest-dev
...
Add coverage for eventLog.js and update Jest config.
2017-03-22 15:12:07 +01:00
Thomas Kriechbaumer
907825714b
move examples tests ( #2199 )
2017-03-22 12:02:18 +01:00
Matthew Shao
82ecc5448d
[web] Update configuration of jest to avoid deprecation warning
2017-03-22 18:42:46 +08:00
Matthew Shao
20d3ae98e0
[web] Reach 100% coverage for ducks/eventLog.js
2017-03-22 18:32:28 +08:00
Matthew Shao
ab2fcbef8d
Fix#2184, mitmweb -n dispalys incorrect message. ( #2187 )
...
* Fixes #2184 , python code.
* Fixes #2184 , JavaScript code.
* [web] Update Footer.jsx (#2184 )
2017-03-22 01:26:04 +01:00
Aldo Cortesi
00902e6feb
Merge pull request #2190 from cortesi/mypy
...
mypy for all of ./mitmproxy
2017-03-22 11:16:02 +13:00
Aldo Cortesi
95d9ec88ac
tox: mypy checking for entire codebase
...
Also fix a few linting errors.
2017-03-22 10:29:46 +13:00
Maximilian Hils
26d0254203
[requires.io] dependency update on master branch ( #2193 )
2017-03-21 18:43:56 +01:00
LuD1161
cd8ce3c88e
Added the level definition that can be used
2017-03-20 14:23:57 +05:30
Aldo Cortesi
cacad8373b
Make tnetstrings pass mypy
...
Mypy doesn't support recursive types yet, so we can't properly express
TSerializable nested structures. For now, we just disable type checking in the
appropriate locations.
https://github.com/python/mypy/issues/731
2017-03-20 13:09:24 +13:00
Aldo Cortesi
4ca78604af
Factor out an io module
...
Include tnetstring - we've made enough changes that this no longer belongs in
contrib.
2017-03-20 12:50:09 +13:00
Aldo Cortesi
0c0c0d38cc
Merge pull request #2186 from cortesi/tighten
...
Tighten some options-related functionality
2017-03-20 12:39:49 +13:00
Aldo Cortesi
3a8da31835
mypy all of the codebase bar tnetstring
...
In some places, this involved removing type declarations where our types were
terminally confused. The grideditor specifically needs a cleanup and
restructure.
2017-03-20 12:38:08 +13:00
Aldo Cortesi
b98ce71770
Fix sliding window type specs
2017-03-20 12:21:50 +13:00
Aldo Cortesi
2153c337e0
addons.view: we no longer have a None order state
...
This bumps coverage back to 100% for addons
2017-03-20 09:12:09 +13:00
Maximilian Hils
92e3358915
Merge pull request #2182 from syahn/fix-#2134
...
Fix #2134
2017-03-19 14:47:50 +01:00
Aldo Cortesi
b19fefd173
options: default_contentview uses lowercase
2017-03-19 14:39:16 +13:00
Aldo Cortesi
04f1a4443d
options: reraise when there's an error with a partial update
...
Fixes #2174
2017-03-19 14:36:23 +13:00
Aldo Cortesi
8d68196fd0
console: use overlay chooser to pick flow view mode
...
More consistent, and fixes status prompt overflow issue.
2017-03-19 14:13:54 +13:00
Aldo Cortesi
1b6bc874b5
console options: "d" to reset this option to default
2017-03-19 14:01:32 +13:00
Aldo Cortesi
43e7b9d68c
options: choices for content views and tighten console order spec
...
Also clean up some leftovers from filter option name change.
2017-03-19 13:39:28 +13:00
Aldo Cortesi
22d7c31ea8
dumper, mitmdump: kill filtstr
...
Dumper now also uses view_filter. Passing arguments to mitmdump is now
precisely equivalent to setting both filestream_filter and view_filter.
2017-03-19 13:21:46 +13:00
Aldo Cortesi
475a4e3eb0
streamfile: add streamfile_filter and use it instead of filtstr
2017-03-19 13:08:26 +13:00
Aldo Cortesi
6f745b90a8
console options: fix bug that caused keys to be handled by wrong component
2017-03-19 13:05:27 +13:00
Aldo Cortesi
b1ef4bce30
options: filter -> view_filter
2017-03-19 13:02:51 +13:00
Aldo Cortesi
1b330ba453
Merge pull request #2173 from cortesi/coptions
...
Console options editor
2017-03-19 12:27:41 +13:00
Aldo Cortesi
cb18c91f13
console options: help for overlays, improved layout for overlay grid editor
2017-03-19 12:14:42 +13:00
Aldo Cortesi
21794c7bbe
optmanager: test coverage
2017-03-19 11:29:41 +13:00
Aldo Cortesi
49b0a67eb9
console options: add an overlay grid editor for sequence options
2017-03-19 10:32:22 +13:00
Aldo Cortesi
4e24c95a61
optmanager: cope with bound methods in .subscribe
...
Fixes #2122
2017-03-19 10:32:22 +13:00
Aldo Cortesi
3f50d5fdbb
console options: handle choices settings
...
This implements a generic chooser overlay, and uses it to handle setting
options that have fixed choices. We'll use this overlay elsewhere too.
2017-03-19 10:32:22 +13:00
Aldo Cortesi
fea08ef919
console options: in-place editor for simple strings and ints
2017-03-19 10:32:22 +13:00
Aldo Cortesi
3a949f35f8
console options: better defaults display, g/G/D keyboard shortcuts
2017-03-19 10:32:22 +13:00