Source

CherryPy / cherrypy / test / test_proxy.py

Author Commit Message Labels Comments Date
Michiel Overtoom
Fix ticket URLs from http://www.cherrypy.org/ticket/XYZ to https://bitbucket.org/cherrypy/cherrypy/issue/XYZ
Gustavo Picon
Removed trailing whitespace from the codebase. sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
Robert Brewer
Bye bye, py2/3.
Robert Brewer
More Python 2.3 fixes.
Robert Brewer
Removed test.py etc.
Joseph Tate
Convert the tests to use nose instead of our own runner. This strips out much coverage and profiling (handled by nose) and lets you focus on writing tests. The biggest changes that have to be done in the tests classes is you have to put the "setup_server" method on the class(es) that need them when running. If you need it for multiple classes, you can use staticmethod() to attach it to multiple classes without using inheritance.
Robert Brewer
Fix for #952 (on multiple proxies getting multiple base urls) for 3.0, 3.1, 3.2 (trunk and python3).
Robert Brewer
Moved "environment: test_suite" out of individual tests and into helper.py. Moved setup_server() call out of individual tests and into helper.py. Added a new test for per-handler max_request_body_size shenanigans.
Robert Brewer
Fix for #782 (X-Forwarded-Ssl).
Robert Brewer
Use sample domains in test.
Robert Brewer
A couple more modpy test fixes.
Robert Brewer
Upgraded all INADDR_ANY and localhost checks to include IPv6 equivalents.
Robert Brewer
Fix for #643 (socket_host is confusing). Empty string and None are now illegal values for socket_host; use '0.0.0.0' instead for INADDR_ANY.
Robert Brewer
RFC 2606 updates (official example domains).
Robert Brewer
Changes to socket_host: 1. wsgiserver now treats a host of "" as an alias for INADDR_ANY. The getaddrinfo call now passes host=None and sets AI_PASSIVE in this case. 2. Server.httpserver_from_self doesn't change an empty host ("") to localhost anymore. 3. The test suite has a new {{{--host=<name or IP>}}} flag. 4. The webtest module now allows WebCase.HOST to be "", and will connect on '127.0.0.1' if so. 5. Lots of …
Robert Brewer
Fix for #562 (Redirect for slash doesn't use tools.proxy.base). Moved slash checking into new tools.trailing_slash(missing=True, extra=False), which is on by default. The core now sets request.is_index to allow such tools to work. In addition, if that tool is off, mismatched slashes will be corrected in cherrypy.url.
Robert Brewer
New CPWebCase base() function.
Robert Brewer
Collapsed request.url and tree.url into a single cherrypy.url function.
Robert Brewer
SSL support for _cpwsgiserver. One test fails immaterially. Run "test.py --ssl" to test.
Robert Brewer
New scheme arg to tools.proxy.
Robert Brewer
Improved tree.url() to include base. Also replaced request.browser_url with request.url().
Robert Brewer
Overhaul of config system: 1. New docstring for config module! 2. Put all entries into a config namespace. New deadlock, log, request and response namespaces. 3. Request and response entries now directly modify attributes of cherrypy.request and .response, and consumer code looks up those attributes, not config. This also allows interactive inspection of defaults. 4. Removed 'log_config' config entry. Use engine.on_star…
Robert Brewer
Made all imports absolute "just in case" for Python 2.5.
Robert Brewer
X-Forwarded-For should overwrite remote.ip, not remote.name.
Robert Brewer
Replaced request.remote_addr, remote_port, and remote_host with a single "remote" attribute, an instance of lib.http.Host, which has "ip", "port" and "name" attributes. Added a similar request.local attribute. Changed request() signature to (local, remote, scheme). This allows requests run behind multiple HTTP servers to know the address info for their particular connection.
Robert Brewer
Expanded baseurl tool into a new proxy tool.