Source

CherryPy / cherrypy / test / test_caching.py

Author Commit Message Labels Comments Date
Robert Brewer
Bye bye, py2/3.
Robert Brewer
More Python 2.3 fixes.
Robert Brewer
Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.
Robert Brewer
Fix for #1012 (process/plugins.py:PerpetualTimer wakes up CPU 20 times per second).
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 #918 (caching does not respect Cache-Control: max-age header).
Robert Brewer
Fix for #775 (Caching has a performance-killing race condition?). The caching tool now does antistampeding by default.
Robert Brewer
Robert Brewer
trunk: A bunch more alignments between trunk and python3 syntax.
Lakin Wecker
trunk - removing unused imports.
Lakin Wecker
trunk - Porting the cherrypy.lib.httputil name change. It'll be easier to maintain two released branches if the modules are named the same. However, in the 2.6 branch we'll leave cherrypy.lib.http working and deprecate it for 3.3.
jaraco
Finished unit test for enhanced Vary header caching support
jaraco
Added test to allow checking for existance of a certain value in a comma-delimited list in headers
klarson
Fixed incorrect header in cache test
jaraco
Updated sample header for varying header test
jaraco
Now add the vary header in gzip regardless of whether gzip actually compresses something
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
Silenced some long-known test disparities when using Apache as the server in a separate process.
Robert Brewer
Forward port to trunk from 3.0.x [1704]. Responses were being gzipped twice when served from cache.
Robert Brewer
Forward port to trunk from 3.0.x [1703]. Added checking of 'Vary' header before responding with cached content.
Robert Brewer
Fix for #728 (tools.expires doesn't set a past-date header when secs=0).
Robert Brewer
Fix for #721 (bugs in tools.caching).
Robert Brewer
Test update for must-revalidate.
Robert Brewer
Fixed bug in caching; invalid methods did not delete cached resource. See #509.
Robert Brewer
More (final?) config overhaul work: 1. Removed cherrypy.config.get! Instead, you should directly inspect cherrypy.request, response, server, etc. Note that request.config.get still works fine. 2. a) cherrypy.log is now an instance of LogManager. It's still callable, but now is the object you inspect instead of calling config.get("log*"). b) cherrypy.log_access is now cherrypy.log.access. 3. All threads should now have access to d…
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
Fixed the HTTP/1.0 test suite. This involved moving wsgi SERVER_PROTOCOL back (to what the spec says!) and adding a new non-standard ACTUAL_SERVER_PROTOCOL entry.
Robert Brewer
Fix for testExpiresTool when behind Apache.
  1. Prev
  2. 1
  3. 2
  4. Next