[Erp5-report] r14328 - /erp5/trunk/utils/oood/testOoodHighLoad.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 3 14:52:18 CEST 2007
Author: bartek
Date: Thu May 3 14:52:18 2007
New Revision: 14328
URL: http://svn.erp5.org?rev=14328&view=rev
Log:
two uncommitted changes (sorry), and updated description of status codes
Modified:
erp5/trunk/utils/oood/testOoodHighLoad.py
Modified: erp5/trunk/utils/oood/testOoodHighLoad.py
URL: http://svn.erp5.org/erp5/trunk/utils/oood/testOoodHighLoad.py?rev=14328&r1=14327&r2=14328&view=diff
==============================================================================
--- erp5/trunk/utils/oood/testOoodHighLoad.py (original)
+++ erp5/trunk/utils/oood/testOoodHighLoad.py Thu May 3 14:52:18 2007
@@ -49,7 +49,7 @@
import config
import lib
-from oood_common import responseFactory, code2message
+from oood_common import responseFactory, code2message, Request
### configuration
max_batch_size = 5
@@ -112,19 +112,15 @@
f.write('%s : %s\n' % (count, res))
f.write("""
Server responses:
- 200 - everyting went fine
- 401 - the client called a non-existent function
- 402 - the OOo failed (two times) to load or process the document; chances are
- that the document has an invalid format.
- 403 - the instance timed out while trying to process a document (probably
- the document froze the OOo instance); the OOo instance will be restarted
- 501 - the server is temporarily blocked because emergency restart is in progress
- 502 - worker pool is empty, the server will be restarted
- 503 - pool and semaphore are out of sync (this should not happen, so the server
- will be restarted)
-
- Anything else (a dictionary, an exception or else) means that something is
- really wrong and the oood needs to be fixed.
+ 200: 'OK',
+ 401: 'requested method is not provided',
+ 402: 'the document could not be processed',
+ 403: 'timeout while processing document',
+ 404: 'malformed request',
+ 501: 'the server is restarting',
+ 502: 'pool is empty, the server will be restarted',
+ 503: 'the server is out of sync and will be restarted',
+ 504: 'unknown error'
""")
f.close()
@@ -156,7 +152,7 @@
self.logResult(local.response.code)
return
log('--------------------- got result: %s' % local.response.code)
- self.logResult(local.response)
+ self.logResult(local.response.code)
self.failUnless(local.response.code == 200)
def testRandomLoad(self):
More information about the Erp5-report
mailing list