Aldo Cortesi
9f77c79227
FileStreamer -> StreamFile
...
options.wfile -> options.streamfile
2016-11-03 15:00:18 +13:00
Aldo Cortesi
43a8221989
addons: filestreamer test cov to 100%
...
Also address a bug in taddons that caused options changes that raised errors to
be retained rather than rolled back.
2016-11-03 14:50:23 +13:00
Aldo Cortesi
fbdce4b629
addons filstreamer: tests and bugfixes
...
- Move tests to taddons
- Fix a bug where options updates caused streaming to halt
2016-11-03 12:44:19 +13:00
Aldo Cortesi
e1cea56379
Merge pull request #1705 from cortesi/tests
...
Fix Travis cipher-suite related breakage
2016-11-03 10:33:51 +13:00
Aldo Cortesi
5109fd8ecb
Change antiquated test cipher suites
...
This breaks Travis, possibly due to OpenSSL version.
2016-11-03 08:23:19 +13:00
Aldo Cortesi
d4f4beb6c7
tests: add mitmdump --sysinfo to tests runs for platform info
2016-11-03 07:57:25 +13:00
Aldo Cortesi
356cf0f36e
Merge pull request #1704 from cortesi/addontest4
...
addons: dumper spit and polish
2016-11-03 07:40:30 +13:00
Aldo Cortesi
b867fb35a3
addons: dumper spit and polish
...
- 100% test coverage
- Cleanups
- Add test/mitmproxy/addons/dumperview.py, a small utility for viewing dumper
output variations
2016-11-02 22:47:49 +13:00
Aldo Cortesi
93fd7a8265
Merge pull request #1702 from cortesi/addontest3
...
tests: convert test_dumper to use taddons
2016-11-02 11:32:45 +13:00
Aldo Cortesi
a75b3474a4
tests: convert test_dumper to use taddons
2016-11-02 11:17:08 +13:00
Aldo Cortesi
490872ebef
Merge pull request #1701 from cortesi/addontest2
...
Test suite cleanups
2016-11-02 11:15:27 +13:00
Aldo Cortesi
59b269425f
tests: client_playback coverage
2016-11-02 10:59:33 +13:00
Aldo Cortesi
ee67797c7e
test coverage: complete branch coverage is NOT a goal
...
Branch coverage means lots of duplication in tests to hit all cases, and I'm
not sure it's worth it. At any rate, let's aim for statement coverage first.
2016-11-02 10:54:08 +13:00
Aldo Cortesi
7e6d014f8f
tests: pathod/tutils.py -> pathod/tservers.py
...
And remove all aliases for mitmproxy.test.tutils
2016-11-02 10:06:25 +13:00
Aldo Cortesi
c55e8d8f62
tests: clean up test/mitmproxy/tutils.py
...
Remove aliases, use mitmproxy/test/tutils instead.
2016-11-02 09:44:18 +13:00
Aldo Cortesi
fc7606bd98
tests: minor cleanup for tests/mitmproxy/tutils.py
2016-11-02 08:51:26 +13:00
Aldo Cortesi
ba09b8bff3
Merge pull request #1700 from cortesi/addontests
...
addons anticom, anticache: expand tests, new truss
2016-11-01 17:57:16 +13:00
Aldo Cortesi
83fdd82a52
addons anticom, anticache: expand tests, new truss
2016-11-01 17:38:45 +13:00
Aldo Cortesi
1cc2195f45
Merge pull request #1698 from vhaupert/master
...
Wsgiapp: Only raise exception if an error occurred.
2016-11-01 12:02:01 +13:00
Aldo Cortesi
c7f6376828
Merge pull request #1697 from xorrbit/patch-1
...
Update for Ubuntu 16.04
2016-11-01 12:00:54 +13:00
Vincent Haupert
f9add49833
Only raise exception if an error occurred.
2016-10-31 23:53:11 +01:00
Aldo Cortesi
def0127cdd
Merge pull request #1696 from cortesi/rmstate
...
Remove addons.State entirely
2016-11-01 11:30:07 +13:00
Andrew Orr
bff75f4ff6
Update for Ubuntu 16.04
2016-10-31 17:11:51 -05:00
Aldo Cortesi
c33557a230
Extend mypy checks to mitmproxy/addons
...
Fix a number of issues to do this.
2016-11-01 10:38:35 +13:00
Aldo Cortesi
2c85b262d5
Merge pull request #1695 from cortesi/term
...
console: Minor cleanups
2016-11-01 10:09:36 +13:00
Aldo Cortesi
50deaf56bf
Remove addons.State
...
- Do a first-pass port of mitmweb. Some stuff still broken.
- Remove more all State tests from the test suite
2016-11-01 10:06:28 +13:00
Aldo Cortesi
9d9735dd07
Replace addons.state in test suite
...
Use a super-simple flow recorder instead.
2016-11-01 09:36:24 +13:00
Aldo Cortesi
ecffaab862
console: Minor cleanups
2016-11-01 09:25:32 +13:00
Aldo Cortesi
0aed002ad8
Merge pull request #1694 from cortesi/cachekey
...
console: add caching sort keys
2016-10-30 22:10:10 +13:00
Aldo Cortesi
daf355bb4c
console: add caching sort keys
...
This is a tad complicated. The underlying sorted list implementation expects
the sort key to be stable for the lifetime of the object. However, if we sort
by size, for instance, the sort order changes as the flow progresses through
its lifecycle. We address this through two means:
- Let order keys cache the sort value by flow ID.
- Add a facility to refresh items in the list by removing and re-adding them
when they are updated.
2016-10-30 21:11:30 +13:00
Aldo Cortesi
9abfb1aac2
console: re-add follow focus
2016-10-30 19:47:32 +13:00
Aldo Cortesi
be6ce4f22b
Merge pull request #1693 from cortesi/statusbar
...
console: status bar improvements
2016-10-30 18:48:03 +13:00
Aldo Cortesi
9322167eeb
console: show order option in status bar
2016-10-30 18:33:51 +13:00
Aldo Cortesi
5975cc8301
console: status bar improvements
...
- Arrow to show flow order
- Hook statusbar up to focus change to fix some update issues
2016-10-30 18:25:33 +13:00
Aldo Cortesi
f168379c2a
Merge pull request #1692 from cortesi/floworder
...
console: o for flow order
2016-10-30 18:10:04 +13:00
Aldo Cortesi
f08b57fb9b
console: "v" to reverse flow order
2016-10-30 17:57:43 +13:00
Aldo Cortesi
a67a591893
console: o for flow order
...
"o" shortcut and --order cmdline option to change flow order.
Options is now bound to "O".
2016-10-30 17:42:34 +13:00
Aldo Cortesi
897d5ddc87
Merge pull request #1691 from cortesi/consoleclean1
...
console: various cleanups
2016-10-30 17:21:12 +13:00
Aldo Cortesi
7a6bae336b
addons.view: fix tests
2016-10-30 17:03:06 +13:00
Aldo Cortesi
0b2a2ad2a6
docs: examples/logging -> examples/context_logging
2016-10-30 16:58:50 +13:00
Aldo Cortesi
a43cce504a
console: various cleanups
2016-10-30 16:58:19 +13:00
Aldo Cortesi
b229d470c4
Merge pull request #1690 from cortesi/consoleview
...
console: Port from state to view
2016-10-30 16:27:12 +13:00
Aldo Cortesi
62ead34a94
mitmproxy.console: Complete port to view.
2016-10-30 16:15:33 +13:00
Aldo Cortesi
6b6c44551a
addons.view: Add first-class support for marking
...
Marking now works differently - it's no longer just another filter, it's
applied in addition to the filter. This means you can apply a filter, mark some
flows, and then toggle between marked and unmarked flows matching the filter.
I'm leaving the filter for marked flows intact - it will come in handy in other
situations.
2016-10-30 15:45:36 +13:00
Aldo Cortesi
2b76db1272
console: Port from state to view
...
First phase of the port - basic flow list and flow view functionality working.
More to come.
2016-10-30 14:56:36 +13:00
Aldo Cortesi
83b56527d9
Merge pull request #1689 from cortesi/contentoption
...
Add options.default_contentview
2016-10-30 13:28:47 +13:00
Aldo Cortesi
a5857ec97a
Merge pull request #1688 from cortesi/intercept
...
Intercept addon & nicer addon testing truss
2016-10-30 12:15:53 +13:00
Aldo Cortesi
b9eb1a3479
Add options.default_contentview
...
This is the first step in a longer process of revamping content views. For the
moment, the option is not exposed on the command line.
2016-10-30 12:05:37 +13:00
Aldo Cortesi
944dcbaaa0
Cleanups: remove intercept from addons.state, unused imports
2016-10-30 11:13:05 +13:00
Aldo Cortesi
81a00f6f76
Replace interception in mitmproxy and mitmweb with addon
...
Fixes #1674
2016-10-30 11:07:09 +13:00