[CalendarServer-changes] [7786] CalendarServer/trunk/contrib/performance

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 13 14:07:12 PDT 2011


Revision: 7786
          http://trac.macosforge.org/projects/calendarserver/changeset/7786
Author:   exarkun at twistedmatrix.com
Date:     2011-07-13 14:07:11 -0700 (Wed, 13 Jul 2011)
Log Message:
-----------
Add an accounts-related print to the startup code to catch any obvious problems that might lead to failure to authenticate.  Also add some code to the http auth implementation to actually notice when it will not be possible to respond to a challenge; doesn't fix the problem, but might make it a bit more clear why/when/what it is happening.

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/httpauth.py
    CalendarServer/trunk/contrib/performance/loadtest/sim.py

Modified: CalendarServer/trunk/contrib/performance/httpauth.py
===================================================================
--- CalendarServer/trunk/contrib/performance/httpauth.py	2011-07-13 20:02:37 UTC (rev 7785)
+++ CalendarServer/trunk/contrib/performance/httpauth.py	2011-07-13 21:07:11 UTC (rev 7786)
@@ -44,6 +44,8 @@
 
     def response(self, uri, method, keyring):
         username, password = keyring.passwd.find_user_password(self.realm, uri)
+        if username is None:
+            raise RuntimeError("Credentials for realm=%s uri=%s not found" % (self.realm, uri))
         digest = Digest(username, password, [])
         digest.fields.update(self.fields)
         authorization = []

Modified: CalendarServer/trunk/contrib/performance/loadtest/sim.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/sim.py	2011-07-13 20:02:37 UTC (rev 7785)
+++ CalendarServer/trunk/contrib/performance/loadtest/sim.py	2011-07-13 21:07:11 UTC (rev 7786)
@@ -217,6 +217,7 @@
             loader = options.config['accounts']['loader']
             params = options.config['accounts']['params']
             records.extend(namedAny(loader)(**params))
+            print 'Loaded', len(records), 'accounts.'
 
         return cls(server, arrival, parameters,
                    observers=observers, records=records,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110713/2ce10b4f/attachment-0001.html>


More information about the calendarserver-changes mailing list