[CalendarServer-changes] [14919] CalendarServer/trunk/contrib/performance/loadtest/sim.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 25 15:55:44 PDT 2015
Revision: 14919
http://trac.calendarserver.org//changeset/14919
Author: cdaboo at apple.com
Date: 2015-06-25 15:55:43 -0700 (Thu, 25 Jun 2015)
Log Message:
-----------
Put this method back as it is referenced via a named module load (though not called directly in our code).
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/loadtest/sim.py
Modified: CalendarServer/trunk/contrib/performance/loadtest/sim.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/sim.py 2015-06-25 21:56:54 UTC (rev 14918)
+++ CalendarServer/trunk/contrib/performance/loadtest/sim.py 2015-06-25 22:55:43 UTC (rev 14919)
@@ -69,6 +69,22 @@
+def generateRecords(
+ count, uidPattern="user%d", passwordPattern="user%d",
+ namePattern="User %d", emailPattern="user%d at example.com",
+ guidPattern="user%d"
+):
+ for i in xrange(count):
+ i += 1
+ uid = uidPattern % (i,)
+ password = passwordPattern % (i,)
+ name = namePattern % (i,)
+ email = emailPattern % (i,)
+ guid = guidPattern % (i,)
+ yield _DirectoryRecord(uid, password, name, email, guid)
+
+
+
def recordsFromCSVFile(path):
if path:
pathObj = FilePath(path)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150625/1a6d1735/attachment.html>
More information about the calendarserver-changes
mailing list