aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Port mitmproxy test suite entirely to nose.Aldo Cortesi2012-06-0913-490/+401
|
* Move pathod service testing truss to nose.Aldo Cortesi2012-06-092-43/+32
|
* Start conversion to nose.Aldo Cortesi2012-06-094-173/+178
| | | | RIP pry.
* Shift mitmproxy test suite over to pathod.Aldo Cortesi2012-06-086-161/+52
| | | | This opens a whole brave new world of testing for mitmproxy.
* Split parsing of intial line into separate protocols.Aldo Cortesi2012-06-031-0/+52
|
* Add unit tests for console/help.pyAldo Cortesi2012-06-031-0/+25
|
* Fix a crashing bug when replacing text in a flow with unicode bodies.Aldo Cortesi2012-05-252-0/+10
|
* Refuse to replay a request with missing content.Aldo Cortesi2012-05-161-0/+10
|
* Add the ability to flag content as missing in a request or a response.Aldo Cortesi2012-05-161-0/+6
| | | | | | | We'll use this in a number of situations. First, we'll soon have response streaming that directly pipes responses to clients. These will be content-less from mitmproxy's perspective. Second, we'll be growing new events that fire after headers are received, but before content is read.
* Internal error page for WSGI.Aldo Cortesi2012-04-271-5/+61
| | | | Also, 100% test coverage.
* Add a WSGI adapter that lets us serve a WSGI app out of mitmproxy.Aldo Cortesi2012-04-242-0/+70
| | | | | | | | This commit adds: - A WSGI App adapter for mitmproxy - An app registry in the proxy instance that lets us link WSGI apps with (hostname, port) combinations. - Fixes for a number of bugs discovered while creating this feature.
* Serialized data version check.Aldo Cortesi2012-04-111-1/+12
|
* Add an "f" shortcut key to load full body contents.Aldo Cortesi2012-04-081-32/+39
|
* XML/HTML pretty view tweaks.Aldo Cortesi2012-04-071-8/+7
|
* Integrate lxml for pretty-printing HTML and XML.Aldo Cortesi2012-04-072-61/+20
| | | | | Tackling the pretty-printing performance problem head-on, at the cost of a major dependency.
* Serialize requestcount for ClientConnect objects.Aldo Cortesi2012-04-031-1/+2
|
* Add a details page, available from a flow view with the 'X' shortcutAldo Cortesi2012-04-031-0/+1
| | | | | At the moment, this shows the upstream SSL certificate details. More fine-grained detail that doesn't fit in the flow view itself will be added.
* Minor unit test bump.Aldo Cortesi2012-04-032-2/+10
|
* Add accessor method for SSLCert object on Response.Aldo Cortesi2012-04-021-0/+7
|
* Expand SSL cert supportAldo Cortesi2012-04-025-7/+20
| | | | | | - Capture the remote SSL certificate - Expose the remote cert as an attribute on Response - Expand the certutils.SSLCert interface to expose more cert info
* Refactor proxy.Server to fix a crash when replaying with -nAldo Cortesi2012-04-021-2/+2
|
* Start rationalizing content views.Aldo Cortesi2012-04-021-23/+11
| | | | | | We now no longer have distinction between "pretty" view and hex/raw. Instead, we simply a default AUTO view with a global override (M) and a local override (m).
* Make "T" pretty view over-ride persistent when switching between flows.Aldo Cortesi2012-04-021-2/+14
| | | | | We do this by adding a flow settings mechanism to ConsoleState. This is pretty rough at the moment and should become more sophisticated as needed.
* Add a variant of cleanBin that escapes newlines and tabs.Aldo Cortesi2012-03-271-0/+10
| | | | Use this to fix the hex display option.
* Add a pretty-viewer for images.Aldo Cortesi2012-03-266-0/+7
| | | | | This shows basic image information like dimensions, plus extracted EXIF tags and other metadata.
* Pretty view now indents Javascript.Aldo Cortesi2012-03-251-1/+6
| | | | Thanks to the JSBeautifier project, which is now included in the contrib directory.
* Re-enable simple multipart form parsing and preview.Aldo Cortesi2012-03-251-0/+26
|
* Refactor pretty view mechanism.Aldo Cortesi2012-03-242-0/+140
| | | | Also start adding unit tests for this subsystem.
* Add error indications to GridEditor.Aldo Cortesi2012-03-231-0/+4
|
* Add a simple parser for content type specifications.Aldo Cortesi2012-03-201-0/+11
|
* Generalize GridEditor to N columns.Aldo Cortesi2012-03-181-4/+7
| | | | Start adding a replacement rule editor.
* Add specification of replacement patterns on the command line.Aldo Cortesi2012-03-172-0/+62
|
* Hooks -> ReplaceHooksAldo Cortesi2012-03-171-20/+23
| | | | | It makes more sense to specialize this, which will let me build a nicer interface for replacement hooks in mitmproxy.
* Add a hooks mechanism, based on filter expressions.Aldo Cortesi2012-03-161-0/+35
|
* replace() methods now decode and re-encode contents before substitution.Aldo Cortesi2012-03-161-0/+18
|
* Add a decoded context manager.Aldo Cortesi2012-03-161-0/+24
| | | | | | | | | This simplifies a common chore when modifying traffic - decoding the object, modifying it, then re-encoding it with the same encoding afterwards. You can now simply say: with flow.decoded(request): request.content = "bar"
* Cleanliness fixes.Aldo Cortesi2012-03-121-0/+1
| | | | | - Remove unused code during previous commit. - Code coverage fixes.
* Merge remote-tracking branch 'taiste/server-replay-pop'Aldo Cortesi2012-03-101-6/+18
|\
| * Added tests for ServerPlaybackState with nopopValtteri Virtanen2012-03-051-0/+12
| |
| * Fixed old testsValtteri Virtanen2012-03-051-6/+6
| |
* | Create an SSL certificate class.Aldo Cortesi2012-03-051-8/+6
|/
* Removed imports left unused after Py{OpenSSL,ASN1}András Veres-Szentkirályi2012-03-011-1/+1
| | | | | | Commits 533f61f67aab38f5bce882ad0dc03b7b5f292956 and 8b841bc9e370370716b473f26e001c65e2eee2af left some imports unused while swithing to PyOpenSSL and PyASN1 -- this commit removes these imports.
* Use PyOpenSSL and PyASN1 for certificate parsing.Aldo Cortesi2012-03-014-149/+191
| | | | | Yes, these are two more major dependencies for mitmproxy, but if we're going to do all the cool things I want to do with SSL certs, there is no other way.
* Factor out cert operations in to certutils.py.Aldo Cortesi2012-02-292-63/+69
|
* Repair unit tests.Aldo Cortesi2012-02-271-3/+2
|
* Fix cert generation harder.Aldo Cortesi2012-02-271-1/+3
|
* Better certificate parsing.Aldo Cortesi2012-02-274-1/+114
|
* Add upstream certificate lookup.Aldo Cortesi2012-02-273-3/+76
| | | | | | This initiates a connection to the server to obtain certificate information to generate interception certificates. At the moment, the information used is the Common Name, and the list of Subject Alternative Names.
* Unit test++.Aldo Cortesi2012-02-254-5/+30
|
* Fix detection of URL-encoded forms.Aldo Cortesi2012-02-241-1/+10
| | | | Thanks to Paul Capestany <capestany@gmail.com> for reporting this.