Source

CherryPy / cherrypy / test / test_session_filter.py

Author Commit Message Labels Comments Date
Robert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Remi Delon
More session improvements: support cleaning up old sessions, support notifying users when a session is created/deleted, new PostgreSQL backend
Remi Delon
Checking in first draft of new session implementation (see ticket #275). Only RAM and File storage so far, and it doesn't clean up old sessions
Michael Robinson
The second session filte was removed and the tutorials are renumberd. The sessionFitler no longer has any way to support multiple named sessions
Michael Robinson
SessionFilter: simplified internal usage of the config system
Robert Brewer
New cookies attribute in webtest, to make successive getPage() requests easier.
Michael Robinson
sessionFilter tests: removed silly return statement from the anydb test
Michael Robinson
updated the sessionFilter tests
Michael Robinson
Big clean ups to the sessionfilter. Functions have been given more descriptive names. The sessionFilter can no longer create multiple named sessions based on the confuration settings. This can still be accomplished by manually placing the sessionFilter in _cpFilterList
Michael Robinson
cleanups to the sessionfilter code (it should also be faster)
Robert Brewer
1. Moved top-level test functions into a new TestHarness class. 2. Removed helper.HOST and .PORT. 3. Removed helper.port_is_free, since cherrypy.server now checks for free port.
Robert Brewer
1. Removed log() before config read. 2. Moved some things around in the test suite to make them easier to reuse by CP apps.
Robert Brewer
New webtest methods, such as assertStatus, assertHeader, assertInBody
Robert Brewer
Bug in handling of response cookies. Fixed + test.
Robert Brewer
New ignore_all flag in webtest + test_session_filter fixes.
Michael Robinson
fixed sesion filter tests
Robert Brewer
Pulled base web testing functionality into test\webtest.py. Exceptions in server now show traceback in console, and raise ServerError in client test.
Michael Robinson
improved session filter tests
Michael Robinson
Fixed session cleanup bug affects all storage types, fixed seperate bug that prevents file sessions from cleaning up
Michael Robinson
fixed sessionfilter bugs where ram and dbm sessions would not cleanup
Michael Robinson
tests, fixed test_session_filter, it is not called from test.py, and must be run directly
Michael Robinson
sessionFilter: fixed expired() bug. Finished implementing the session filter configuration changes. cherrypy.session is an alias for cherrypy.session.default, so you can use cherrypy.session[key], or cherrypy.session.default[key], but the session attributes (sessionKey, timeout, ...) can only be accessed through cherrypy.session.default
Michael Robinson
Fixed bug where builtin filters would not be reinitialized if the server is restarted. Improvments to the sessionfilter test program
Michael Robinson
thread safety dest for the sessionFilter
Michael Robinson
session tutorials renamed/renumberd, new sessionFilter test cases