[CalendarServer-changes] [8028] CalendarServer/trunk/contrib/performance/loadtest/ical.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Aug 26 10:09:38 PDT 2011


Revision: 8028
          http://trac.macosforge.org/projects/calendarserver/changeset/8028
Author:   sagen at apple.com
Date:     2011-08-26 10:09:37 -0700 (Fri, 26 Aug 2011)
Log Message:
-----------
Use non-test-account names for better distribution

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

Modified: CalendarServer/trunk/contrib/performance/loadtest/ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/ical.py	2011-08-26 16:06:09 UTC (rev 8027)
+++ CalendarServer/trunk/contrib/performance/loadtest/ical.py	2011-08-26 17:09:37 UTC (rev 8028)
@@ -15,6 +15,7 @@
 #
 ##
 
+import random
 from uuid import uuid4
 from urlparse import urlparse, urlunparse
 
@@ -677,7 +678,14 @@
 
     def addEventAttendee(self, href, attendee):
         name = attendee.parameterValue('CN').encode("utf-8")
-        prefix = name[:4].lower()
+
+        # Temporarily use some non-test names (some which will return
+        # many results, and others which will return fewer) because the
+        # test account names are all too similar
+        # prefix = name[:4].lower()
+        prefix = random.choice(["chris", "cyru", "dre", "eric", "morg",
+            "well", "wilfr", "witz"])
+
         email = attendee.parameterValue('EMAIL').encode("utf-8")
 
         event = self._events[href]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110826/28af4c5e/attachment.html>


More information about the calendarserver-changes mailing list