mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Gary Williams
02.20.2012 bad404680101714c6db8133c9ecc4e9d32d5616f
stress tests port importldif suite
15 files added
6027 ■■■■■ changed files
opends/tests/staf-tests/stress-tests/shared/data/importldif/importldif_start.ldif 2797 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/basic/importldif_basic.xml 136 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/basic/importldif_basic_tests.xml 159 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/binary_attributes/importldif_binary_attributes.xml 138 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/binary_attributes/importldif_binary_attributes_tests.xml 720 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/importldif.xml 110 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/indexes/importldif_indexes.xml 136 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/indexes/importldif_indexes_tests.xml 224 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/properties/importldif_properties.xml 138 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/properties/importldif_properties_tests.xml 534 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/tasks/importldif_tasks.xml 137 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/importldif/tasks/importldif_tasks_tests.xml 361 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/operations/basic/operations_basic.xml 138 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/operations/basic/operations_basic_tests.xml 200 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/testcases/operations/operations.xml 99 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/stress-tests/shared/data/importldif/importldif_start.ldif
New file
@@ -0,0 +1,2797 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at
# trunk/opends/resource/legal-notices/OpenDS.LICENSE
# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at
# trunk/opends/resource/legal-notices/OpenDS.LICENSE.  If applicable,
# add the following below this CDDL HEADER, with the fields enclosed
# by brackets "[]" replaced with your own identifying information:
#      Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#      Copyright 2008 Sun Microsystems, Inc.
#
dn: o=import ldif stress test,dc=example,dc=com
o: import ldif stress test
objectclass: top
objectclass: organization
dn: ou=People,o=import ldif stress test,dc=example,dc=com
ou: People
objectclass: top
objectclass: organizationalunit
dn: ou=Groups, o=import ldif stress test,dc=example,dc=com
objectclass: top
objectclass: organizationalunit
ou: Groups
dn: cn=Directory Administrators, ou=Groups, o=import ldif stress test,dc=example,dc=com
cn: Directory Administrators
objectclass: top
objectclass: groupofuniquenames
ou: Groups
uniquemember: uid=kvaughan, ou=People, o=import ldif stress test,dc=example,dc=com
uniquemember: uid=rdaugherty, ou=People, o=import ldif stress test,dc=example,dc=com
uniquemember: uid=hmiller, ou=People, o=import ldif stress test,dc=example,dc=com
dn: ou=Special Users,o=import ldif stress test,dc=example,dc=com
objectclass: top
objectclass: organizationalUnit
ou: Special Users
description: Special Administrative Accounts
dn: uid=scarter, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Sam Carter
sn: Carter
givenname: Sam
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: scarter
mail: scarter@example.com
telephonenumber: +1 408 555 4798
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 4612
userpassword: sprain
dn: uid=tmorris, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Ted Morris
sn: Morris
givenname: Ted
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: tmorris
mail: tmorris@example.com
telephonenumber: +1 408 555 9187
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 4117
userpassword: irrefutable
dn: uid=kvaughan, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Kirsten Vaughan
sn: Vaughan
givenname: Kirsten
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: kvaughan
mail: kvaughan@example.com
telephonenumber: +1 408 555 5625
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 2871
userpassword: bribery
dn: uid=abergin, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Andy Bergin
sn: Bergin
givenname: Andy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Cupertino
uid: abergin
mail: abergin@example.com
telephonenumber: +1 408 555 8585
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 3472
userpassword: inflict
dn: uid=dmiller, ou=People, o=import ldif stress test,dc=example,dc=com
cn: David Miller
sn: Miller
givenname: David
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: dmiller
mail: dmiller@example.com
telephonenumber: +1 408 555 9423
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 4135
userpassword: gosling
dn: uid=gfarmer, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Gern Farmer
sn: Farmer
givenname: Gern
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Cupertino
uid: gfarmer
mail: gfarmer@example.com
telephonenumber: +1 408 555 6201
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 1269
userpassword: ruling
dn: uid=kwinters, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Kelly Winters
sn: Winters
givenname: Kelly
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: kwinters
mail: kwinters@example.com
telephonenumber: +1 408 555 9069
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 4178
userpassword: forsook
dn: uid=trigden, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Torrey Rigden
sn: Rigden
givenname: Torrey
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: trigden
mail: trigden@example.com
telephonenumber: +1 408 555 9280
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 3584
userpassword: sensitive
dn: uid=cschmith, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Chris Schmith
sn: Schmith
givenname: Chris
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: cschmith
mail: cschmith@example.com
telephonenumber: +1 408 555 8011
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 0416
userpassword: hypotenuse
dn: uid=jwallace, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Judy Wallace
sn: Wallace
givenname: Judy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: jwallace
mail: jwallace@example.com
telephonenumber: +1 408 555 0319
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 1033
userpassword: linear
dn: uid=jwalker, ou=People, o=import ldif stress test,dc=example,dc=com
cn: John Walker
sn: Walker
givenname: John
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Cupertino
uid: jwalker
mail: jwalker@example.com
telephonenumber: +1 408 555 1476
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 3915
userpassword: dogleg
dn: uid=tclow, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Torrey Clow
sn: Clow
givenname: Torrey
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: tclow
mail: tclow@example.com
telephonenumber: +1 408 555 8825
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 4376
userpassword: cardreader
dn: uid=rdaugherty, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Robert Daugherty
sn: Daugherty
givenname: Robert
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: rdaugherty
mail: rdaugherty@example.com
telephonenumber: +1 408 555 1296
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 0194
userpassword: apples
dn: uid=jreuter, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jayne Reuter
sn: Reuter
givenname: Jayne
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Cupertino
uid: jreuter
mail: jreuter@example.com
telephonenumber: +1 408 555 1122
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 2942
userpassword: destroy
dn: uid=tmason, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Torrey Mason
sn: Mason
givenname: Torrey
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: tmason
mail: tmason@example.com
telephonenumber: +1 408 555 1596
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 1124
userpassword: squatted
dn: uid=bhall, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Benjamin Hall
sn: Hall
givenname: Benjamin
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: bhall
mail: bhall@example.com
telephonenumber: +1 408 555 6067
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 2511
userpassword: oranges
dn: uid=btalbot, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Brad Talbot
sn: Talbot
givenname: Brad
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: btalbot
mail: btalbot@example.com
telephonenumber: +1 408 555 4992
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 3532
userpassword: trident
dn: uid=mward, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Marcus Ward
sn: Ward
givenname: Marcus
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: mward
mail: mward@example.com
telephonenumber: +1 408 555 5688
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 1707
userpassword: normal
dn: uid=bjablons, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Barbara Jablonski
sn: Jablonski
givenname: Barbara
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: bjablons
mail: bjablons@example.com
telephonenumber: +1 408 555 8815
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 0906
userpassword: strawberry
dn: uid=jmcFarla, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Judy McFarland
sn: McFarland
givenname: Judy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: jmcFarla
mail: jmcFarla@example.com
telephonenumber: +1 408 555 2567
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 2359
userpassword: walnut
dn: uid=llabonte, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Lee Labonte
sn: Labonte
givenname: Lee
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: llabonte
mail: llabonte@example.com
telephonenumber: +1 408 555 0957
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 2854
userpassword: sourdough
dn: uid=jcampaig, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jody Campaigne
sn: Campaigne
givenname: Jody
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: jcampaig
mail: jcampaig@example.com
telephonenumber: +1 408 555 1660
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 4385
userpassword: grapevine
dn: uid=bhal2, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Barbara Hall
sn: Hall
givenname: Barbara
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: bhal2
mail: bhal2@example.com
telephonenumber: +1 408 555 4491
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 2758
userpassword: truths
dn: uid=alutz, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Alexander Lutz
sn: Lutz
givenname: Alexander
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: alutz
mail: alutz@example.com
telephonenumber: +1 408 555 6505
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 1327
userpassword: northward
dn: uid=btalbo2, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Bjorn Talbot
sn: Talbot
givenname: Bjorn
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: btalbo2
mail: btalbo2@example.com
telephonenumber: +1 408 555 4234
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 1205
userpassword: corduroy
dn: uid=achassin, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Ashley Chassin
sn: Chassin
givenname: Ashley
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Santa Clara
uid: achassin
mail: achassin@example.com
telephonenumber: +1 408 555 9972
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 0466
userpassword: duopolist
dn: uid=hmiller, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Harry Miller
sn: Miller
givenname: Harry
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: hmiller
mail: hmiller@example.com
telephonenumber: +1 408 555 9804
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 4304
userpassword: hillock
dn: uid=jcampai2, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jeffrey Campaigne
sn: Campaigne
givenname: Jeffrey
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: jcampai2
mail: jcampai2@example.com
telephonenumber: +1 408 555 7393
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 1377
userpassword: nominee
dn: uid=lulrich, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Lee Ulrich
sn: Ulrich
givenname: Lee
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Sunnyvale
uid: lulrich
mail: lulrich@example.com
telephonenumber: +1 408 555 8652
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 0985
userpassword: attribution
dn: uid=mlangdon, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Marcus Langdon
sn: Langdon
givenname: Marcus
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: mlangdon
mail: mlangdon@example.com
telephonenumber: +1 408 555 6249
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 4471
userpassword: threat
dn: uid=striplet, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Stephen Triplett
sn: Triplett
givenname: Stephen
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: striplet
mail: striplet@example.com
telephonenumber: +1 408 555 4519
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 3083
userpassword: compactify
dn: uid=gtriplet, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Gern Triplett
sn: Triplett
givenname: Gern
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: gtriplet
mail: gtriplet@example.com
telephonenumber: +1 408 555 2582
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 4023
userpassword: placeable
dn: uid=jfalena, ou=People, o=import ldif stress test,dc=example,dc=com
cn: John Falena
sn: Falena
givenname: John
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: jfalena
mail: jfalena@example.com
telephonenumber: +1 408 555 8133
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 1917
userpassword: nightly
dn: uid=speterso, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Sue Peterson
sn: Peterson
givenname: Sue
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: speterso
mail: speterso@example.com
telephonenumber: +1 408 555 3613
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 3073
userpassword: quinine
dn: uid=ejohnson, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Emanuel Johnson
sn: Johnson
givenname: Emanuel
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: ejohnson
mail: ejohnson@example.com
telephonenumber: +1 408 555 3287
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 3737
userpassword: marketwise
dn: uid=prigden, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Peter Rigden
sn: Rigden
givenname: Peter
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: prigden
mail: prigden@example.com
telephonenumber: +1 408 555 5099
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 1271
userpassword: epiphyseal
dn: uid=bwalker, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Brad Walker
sn: Walker
givenname: Brad
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: bwalker
mail: bwalker@example.com
telephonenumber: +1 408 555 5476
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 3529
userpassword: interruptible
dn: uid=kjensen, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Kurt Jensen
sn: Jensen
givenname: Kurt
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: kjensen
mail: kjensen@example.com
telephonenumber: +1 408 555 6127
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 1944
userpassword: regulatory
dn: uid=mlott, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Mike Lott
sn: Lott
givenname: Mike
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: mlott
mail: mlott@example.com
telephonenumber: +1 408 555 2234
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 0498
userpassword: cognac
dn: uid=cwallace, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Cecil Wallace
sn: Wallace
givenname: Cecil
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: cwallace
mail: cwallace@example.com
telephonenumber: +1 408 555 6438
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 0349
userpassword: quintus
dn: uid=tpierce, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Tobias Pierce
sn: Pierce
givenname: Tobias
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: tpierce
mail: tpierce@example.com
telephonenumber: +1 408 555 1531
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 1383
userpassword: rascal
dn: uid=rbannist, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Richard Bannister
sn: Bannister
givenname: Richard
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: rbannist
mail: rbannist@example.com
telephonenumber: +1 408 555 1833
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 0983
userpassword: demonstrate
dn: uid=bplante, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Brian Plante
sn: Plante
givenname: Brian
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: bplante
mail: bplante@example.com
telephonenumber: +1 408 555 3550
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 4654
userpassword: tangerine
dn: uid=rmills, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Randy Mills
sn: Mills
givenname: Randy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: rmills
mail: rmills@example.com
telephonenumber: +1 408 555 2072
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 3823
userpassword: condescend
dn: uid=bschneid, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Benjamin Schneider
sn: Schneider
givenname: Benjamin
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Santa Clara
uid: bschneid
mail: bschneid@example.com
telephonenumber: +1 408 555 1012
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 4471
userpassword: biblical
dn: uid=skellehe, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Sue Kelleher
sn: Kelleher
givenname: Sue
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Santa Clara
uid: skellehe
mail: skellehe@example.com
telephonenumber: +1 408 555 3480
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 1608
userpassword: sweltering
dn: uid=brentz, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Bertram Rentz
sn: Rentz
givenname: Bertram
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Sunnyvale
uid: brentz
mail: brentz@example.com
telephonenumber: +1 408 555 5526
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 0617
userpassword: diachronic
dn: uid=dsmith, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Daniel Smith
sn: Smith
givenname: Daniel
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: dsmith
mail: dsmith@example.com
telephonenumber: +1 408 555 9519
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 0368
userpassword: quantitative
dn: uid=scarte2, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Stephen Carter
sn: Carter
givenname: Stephen
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: scarte2
mail: scarte2@example.com
telephonenumber: +1 408 555 6022
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 2013
userpassword: scooter
dn: uid=dthorud, ou=People, o=import ldif stress test,dc=example,dc=com
cn: David Thorud
sn: Thorud
givenname: David
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Cupertino
uid: dthorud
mail: dthorud@example.com
telephonenumber: +1 408 555 6185
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 1128
userpassword: fulcrum
dn: uid=ekohler, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Elba Kohler
sn: Kohler
givenname: Elba
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: ekohler
mail: ekohler@example.com
telephonenumber: +1 408 555 1926
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 2721
userpassword: guildhall
dn: uid=lcampbel, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Laurel Campbell
sn: Campbell
givenname: Laurel
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: lcampbel
mail: lcampbel@example.com
telephonenumber: +1 408 555 2537
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 2073
userpassword: impress
dn: uid=tlabonte, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Tim Labonte
sn: Labonte
givenname: Tim
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: tlabonte
mail: tlabonte@example.com
telephonenumber: +1 408 555 0058
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 1426
userpassword: express
dn: uid=slee, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Scott Lee
sn: Lee
givenname: Scott
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: slee
mail: slee@example.com
telephonenumber: +1 408 555 2335
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 1806
userpassword: revertive
dn: uid=bfree, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Bjorn Free
sn: Free
givenname: Bjorn
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: bfree
mail: bfree@example.com
telephonenumber: +1 408 555 8588
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 3307
userpassword: etiquette
dn: uid=tschneid, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Torrey Schneider
sn: Schneider
givenname: Torrey
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: tschneid
mail: tschneid@example.com
telephonenumber: +1 408 555 7086
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 2292
userpassword: chaperone
dn: uid=prose, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Paula Rose
sn: Rose
givenname: Paula
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Cupertino
uid: prose
mail: prose@example.com
telephonenumber: +1 408 555 9998
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 0542
userpassword: regatta
dn: uid=jhunter, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Janet Hunter
sn: Hunter
givenname: Janet
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: jhunter
mail: jhunter@example.com
telephonenumber: +1 408 555 7665
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 4856
userpassword: nanometer
dn: uid=ashelton, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Alexander Shelton
sn: Shelton
givenname: Alexander
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: ashelton
mail: ashelton@example.com
telephonenumber: +1 408 555 1081
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 1987
userpassword: appointe
dn: uid=mmcinnis, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Marcus Mcinnis
sn: Mcinnis
givenname: Marcus
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: mmcinnis
mail: mmcinnis@example.com
telephonenumber: +1 408 555 9655
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 4818
userpassword: calcify
dn: uid=falbers, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Frank Albers
sn: Albers
givenname: Frank
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: falbers
mail: falbers@example.com
telephonenumber: +1 408 555 3094
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 1439
userpassword: degradation
dn: uid=mschneid, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Martin Schneider
sn: Schneider
givenname: Martin
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Cupertino
uid: mschneid
mail: mschneid@example.com
telephonenumber: +1 408 555 5017
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 3153
userpassword: motorcycle
dn: uid=pcruse, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Patricia Cruse
sn: Cruse
givenname: Patricia
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Santa Clara
uid: pcruse
mail: pcruse@example.com
telephonenumber: +1 408 555 8641
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 3967
userpassword: pauper
dn: uid=tkelly, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Timothy Kelly
sn: Kelly
givenname: Timothy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
l: Santa Clara
uid: tkelly
mail: tkelly@example.com
telephonenumber: +1 408 555 4295
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 3107
userpassword: risible
dn: uid=ahel, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Andrew Hel
sn: Hel
givenname: Andrew
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: ahel
mail: ahel@example.com
telephonenumber: +1 408 555 2666
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 0572
userpassword: sarsaparilla
dn: uid=jburrell, ou=People, o=import ldif stress test,dc=example,dc=com
cn: James Burrell
sn: Burrell
givenname: James
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: jburrell
mail: jburrell@example.com
telephonenumber: +1 408 555 0751
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 4926
userpassword: degrease
dn: uid=smason, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Sue Mason
sn: Mason
givenname: Sue
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: smason
mail: smason@example.com
telephonenumber: +1 408 555 9780
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 4971
userpassword: sensible
dn: uid=ptyler, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Pete Tyler
sn: Tyler
givenname: Pete
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: ptyler
mail: ptyler@example.com
telephonenumber: +1 408 555 3335
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 0327
userpassword: vinegar
dn: uid=calexand, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Chris Alexander
sn: Alexander
givenname: Chris
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Sunnyvale
uid: calexand
mail: calexand@example.com
telephonenumber: +1 408 555 9438
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 2884
userpassword: dauphin
dn: uid=jcruse, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jim Cruse
sn: Cruse
givenname: Jim
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Santa Clara
uid: jcruse
mail: jcruse@example.com
telephonenumber: +1 408 555 9482
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 0083
userpassword: bridgework
dn: uid=kcarter, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Karen Carter
sn: Carter
givenname: Karen
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: kcarter
mail: kcarter@example.com
telephonenumber: +1 408 555 4675
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 2320
userpassword: radiosonde
dn: uid=rfish, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Randy Fish
sn: Fish
givenname: Randy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: rfish
mail: rfish@example.com
telephonenumber: +1 408 555 9865
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 2317
userpassword: mailbox
dn: uid=phunt, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Philip Hunt
sn: Hunt
givenname: Philip
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: phunt
mail: phunt@example.com
telephonenumber: +1 408 555 1242
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 1183
userpassword: wastewater
dn: uid=rschneid, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Rachel Schneider
sn: Schneider
givenname: Rachel
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: rschneid
mail: rschneid@example.com
telephonenumber: +1 408 555 9908
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 4183
userpassword: decorous
dn: uid=bjensen, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Barbara Jensen
cn: Babs Jensen
sn: Jensen
givenname: Barbara
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: bjensen
mail: bjensen@example.com
telephonenumber: +1 408 555 1862
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 0209
userpassword: hifalutin
dn: uid=jlange, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jim Lange
sn: Lange
givenname: Jim
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Santa Clara
uid: jlange
mail: jlange@example.com
telephonenumber: +1 408 555 0488
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 3798
userpassword: chastity
dn: uid=rulrich, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Randy Ulrich
sn: Ulrich
givenname: Randy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: rulrich
mail: rulrich@example.com
telephonenumber: +1 408 555 5311
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 1282
userpassword: twinkle
dn: uid=rfrancis, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Richard Francis
sn: Francis
givenname: Richard
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: rfrancis
mail: rfrancis@example.com
telephonenumber: +1 408 555 8157
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 3482
userpassword: hacienda
dn: uid=mwhite, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Morgan White
sn: White
givenname: Morgan
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Cupertino
uid: mwhite
mail: mwhite@example.com
telephonenumber: +1 408 555 9620
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 3088
userpassword: staple
dn: uid=gjensen, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Gern Jensen
sn: Jensen
givenname: Gern
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: gjensen
mail: gjensen@example.com
telephonenumber: +1 408 555 3299
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 4609
userpassword: primitive
dn: uid=awhite, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Alan White
sn: White
givenname: Alan
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Sunnyvale
uid: awhite
mail: awhite@example.com
telephonenumber: +1 408 555 3232
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 0142
userpassword: placeholder
dn: uid=bmaddox, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Barbara Maddox
sn: Maddox
givenname: Barbara
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: bmaddox
mail: bmaddox@example.com
telephonenumber: +1 408 555 7783
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 2207
userpassword: feedback
dn: uid=mtalbot, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Martin Talbot
sn: Talbot
givenname: Martin
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: mtalbot
mail: mtalbot@example.com
telephonenumber: +1 408 555 9228
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 1415
userpassword: currant
dn: uid=jbrown, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Judy Brown
sn: Brown
givenname: Judy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Santa Clara
uid: jbrown
mail: jbrown@example.com
telephonenumber: +1 408 555 6885
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 4224
userpassword: militiamen
dn: uid=jjensen, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jody Jensen
sn: Jensen
givenname: Jody
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: jjensen
mail: jjensen@example.com
telephonenumber: +1 408 555 7587
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 4882
userpassword: borderland
dn: uid=mcarter, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Mike Carter
sn: Carter
givenname: Mike
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: mcarter
mail: mcarter@example.com
telephonenumber: +1 408 555 1846
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 3819
userpassword: mainland
dn: uid=dakers, ou=People, o=import ldif stress test,dc=example,dc=com
cn: David Akers
sn: Akers
givenname: David
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: dakers
mail: dakers@example.com
telephonenumber: +1 408 555 4812
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 4944
userpassword: integument
dn: uid=sfarmer, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Scott Farmer
sn: Farmer
givenname: Scott
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: sfarmer
mail: sfarmer@example.com
telephonenumber: +1 408 555 4228
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 0019
userpassword: triumphal
dn: uid=dward, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Daniel Ward
sn: Ward
givenname: Daniel
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Sunnyvale
uid: dward
mail: dward@example.com
telephonenumber: +1 408 555 5322
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 3927
userpassword: armload
dn: uid=tward, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Tobias Ward
sn: Ward
givenname: Tobias
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: tward
mail: tward@example.com
telephonenumber: +1 408 555 7202
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 2238
userpassword: cedilla
dn: uid=pshelton, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Patricia Shelton
sn: Shelton
givenname: Patricia
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Cupertino
uid: pshelton
mail: pshelton@example.com
telephonenumber: +1 408 555 6442
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 2918
userpassword: nosedive
dn: uid=jrentz, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jody Rentz
sn: Rentz
givenname: Jody
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: jrentz
mail: jrentz@example.com
telephonenumber: +1 408 555 5829
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 3025
userpassword: meander
dn: uid=plorig, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Peter Lorig
sn: Lorig
givenname: Peter
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: plorig
mail: plorig@example.com
telephonenumber: +1 408 555 0624
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 1276
userpassword: calorimeter
dn: uid=ajensen, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Allison Jensen
sn: Jensen
givenname: Allison
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: ajensen
mail: ajensen@example.com
telephonenumber: +1 408 555 7892
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 0784
userpassword: coltsfoot
dn: uid=kschmith, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Kelly Schmith
sn: Schmith
givenname: Kelly
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: kschmith
mail: kschmith@example.com
telephonenumber: +1 408 555 9749
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 2221
userpassword: purvey
dn: uid=pworrell, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Pete Worrell
sn: Worrell
givenname: Pete
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: pworrell
mail: pworrell@example.com
telephonenumber: +1 408 555 1637
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 2449
userpassword: solicitous
dn: uid=mreuter, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Matthew Reuter
sn: Reuter
givenname: Matthew
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: mreuter
mail: mreuter@example.com
telephonenumber: +1 408 555 6879
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 1356
userpassword: oblivious
dn: uid=gtyler, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Gern Tyler
sn: Tyler
givenname: Gern
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: gtyler
mail: gtyler@example.com
telephonenumber: +1 408 555 1020
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 0312
userpassword: typology
dn: uid=tschmith, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Tobias Schmith
sn: Schmith
givenname: Tobias
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: tschmith
mail: tschmith@example.com
telephonenumber: +1 408 555 9626
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 4607
userpassword: compost
dn: uid=bjense2, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Bjorn Jensen
sn: Jensen
givenname: Bjorn
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: bjense2
mail: bjense2@example.com
telephonenumber: +1 408 555 5655
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 4294
userpassword: mortgage
dn: uid=dswain, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Dietrich Swain
sn: Swain
givenname: Dietrich
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Sunnyvale
uid: dswain
mail: dswain@example.com
telephonenumber: +1 408 555 9222
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 4396
userpassword: freedom
dn: uid=ahall, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Andy Hall
sn: Hall
givenname: Andy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: ahall
mail: ahall@example.com
telephonenumber: +1 408 555 6169
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 3050
userpassword: slater
dn: uid=jmuffly, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jeff Muffly
sn: Muffly
givenname: Jeff
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: jmuffly
mail: jmuffly@example.com
telephonenumber: +1 408 555 5287
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 0997
userpassword: dictate
dn: uid=tjensen, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Ted Jensen
sn: Jensen
givenname: Ted
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: tjensen
mail: tjensen@example.com
telephonenumber: +1 408 555 8622
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 4717
userpassword: ecosystem
dn: uid=ahunter, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Allison Hunter
sn: Hunter
givenname: Allison
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Sunnyvale
uid: ahunter
mail: ahunter@example.com
telephonenumber: +1 408 555 7713
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 1213
userpassword: egregious
dn: uid=jgoldste, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jon Goldstein
sn: Goldstein
givenname: Jon
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: jgoldste
mail: jgoldste@example.com
telephonenumber: +1 408 555 5769
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 1454
userpassword: yellow
dn: uid=aworrell, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Alan Worrell
sn: Worrell
givenname: Alan
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: aworrell
mail: aworrell@example.com
telephonenumber: +1 408 555 1591
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 3966
userpassword: gargoyle
dn: uid=wlutz, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Wendy Lutz
sn: Lutz
givenname: Wendy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: wlutz
mail: wlutz@example.com
telephonenumber: +1 408 555 3358
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 4912
userpassword: bassinet
dn: uid=jlutz, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Janet Lutz
sn: Lutz
givenname: Janet
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: jlutz
mail: jlutz@example.com
telephonenumber: +1 408 555 4902
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 2544
userpassword: autumn
dn: uid=dlangdon, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Dan Langdon
sn: Langdon
givenname: Dan
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: dlangdon
mail: dlangdon@example.com
telephonenumber: +1 408 555 7044
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 3263
userpassword: botulin
dn: uid=aknutson, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Ashley Knutson
sn: Knutson
givenname: Ashley
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: aknutson
mail: aknutson@example.com
telephonenumber: +1 408 555 2169
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 4736
userpassword: maltose
dn: uid=kmcinnis, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Kelly Mcinnis
sn: Mcinnis
givenname: Kelly
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: kmcinnis
mail: kmcinnis@example.com
telephonenumber: +1 408 555 8596
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 4312
userpassword: stargaze
dn: uid=tcouzens, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Trent Couzens
sn: Couzens
givenname: Trent
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Sunnyvale
uid: tcouzens
mail: tcouzens@example.com
telephonenumber: +1 408 555 8401
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 3994
userpassword: tambourine
dn: uid=lstockto, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Lee Stockton
sn: Stockton
givenname: Lee
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Santa Clara
uid: lstockto
mail: lstockto@example.com
telephonenumber: +1 408 555 0518
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 0169
userpassword: brooklyn
dn: uid=jbourke, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jon Bourke
sn: Bourke
givenname: Jon
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Cupertino
uid: jbourke
mail: jbourke@example.com
telephonenumber: +1 408 555 8541
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 0034
userpassword: brainwash
dn: uid=dlanoway, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Dan Lanoway
sn: Lanoway
givenname: Dan
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: dlanoway
mail: dlanoway@example.com
telephonenumber: +1 408 555 2017
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 3540
userpassword: manhattan
dn: uid=kcope, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Karl Cope
sn: Cope
givenname: Karl
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: kcope
mail: kcope@example.com
telephonenumber: +1 408 555 2709
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 3040
userpassword: forfeiture
dn: uid=abarnes, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Anne-Louise Barnes
sn: Barnes
givenname: Anne-Louise
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Santa Clara
uid: abarnes
mail: abarnes@example.com
telephonenumber: +1 408 555 9445
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 2290
userpassword: chevron
dn: uid=rjensen, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Richard Jensen
sn: Jensen
givenname: Richard
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Cupertino
uid: rjensen
mail: rjensen@example.com
telephonenumber: +1 408 555 5957
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 2631
userpassword: disciplinarian
dn: uid=phun2, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Pete Hunt
sn: Hunt
givenname: Pete
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: phun2
mail: phun2@example.com
telephonenumber: +1 408 555 0342
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 0087
userpassword: absorb
dn: uid=mvaughan, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Matthew Vaughan
sn: Vaughan
givenname: Matthew
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Sunnyvale
uid: mvaughan
mail: mvaughan@example.com
telephonenumber: +1 408 555 4692
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 4508
userpassword: submitted
dn: uid=jlut2, ou=People, o=import ldif stress test,dc=example,dc=com
cn: James Lutz
sn: Lutz
givenname: James
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: jlut2
mail: jlut2@example.com
telephonenumber: +1 408 555 9689
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 3541
userpassword: shrank
dn: uid=mjablons, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Morgan Jablonski
sn: Jablonski
givenname: Morgan
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Cupertino
uid: mjablons
mail: mjablons@example.com
telephonenumber: +1 408 555 0813
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 3160
userpassword: minimal
dn: uid=pchassin, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Peter Chassin
sn: Chassin
givenname: Peter
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Santa Clara
uid: pchassin
mail: pchassin@example.com
telephonenumber: +1 408 555 2816
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 4524
userpassword: barbital
dn: uid=dcope, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Dan Cope
sn: Cope
givenname: Dan
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Sunnyvale
uid: dcope
mail: dcope@example.com
telephonenumber: +1 408 555 9813
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 1737
userpassword: snifter
dn: uid=jrent2, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Judy Rentz
sn: Rentz
givenname: Judy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Santa Clara
uid: jrent2
mail: jrent2@example.com
telephonenumber: +1 408 555 2523
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 4405
userpassword: tachistoscope
dn: uid=tcruse, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Tobias Cruse
sn: Cruse
givenname: Tobias
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: tcruse
mail: tcruse@example.com
telephonenumber: +1 408 555 5980
facsimiletelephonenumber: +1 408 555 4774
roomnumber: 4191
userpassword: flinty
dn: uid=eward, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Eric Ward
sn: Ward
givenname: Eric
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: eward
mail: eward@example.com
telephonenumber: +1 408 555 2320
facsimiletelephonenumber: +1 408 555 7472
roomnumber: 4874
userpassword: episcopal
dn: uid=ttully, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Torrey Tully
sn: Tully
givenname: Torrey
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: ttully
mail: ttully@example.com
telephonenumber: +1 408 555 2274
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 3924
userpassword: schooner
dn: uid=charvey, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Cecil Harvey
sn: Harvey
givenname: Cecil
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: charvey
mail: charvey@example.com
telephonenumber: +1 408 555 1815
facsimiletelephonenumber: +1 408 555 3825
roomnumber: 4583
userpassword: journalese
dn: uid=rfisher, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Randy Fisher
sn: Fisher
givenname: Randy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: rfisher
mail: rfisher@example.com
telephonenumber: +1 408 555 1506
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 1579
userpassword: pomegranate
dn: uid=alangdon, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Andrew Langdon
sn: Langdon
givenname: Andrew
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: alangdon
mail: alangdon@example.com
telephonenumber: +1 408 555 8289
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 2254
userpassword: muzzle
dn: uid=drose, ou=People, o=import ldif stress test,dc=example,dc=com
cn: David Rose
sn: Rose
givenname: David
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Sunnyvale
uid: drose
mail: drose@example.com
telephonenumber: +1 408 555 3963
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 4012
userpassword: gubernatorial
dn: uid=polfield, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Peter Olfield
sn: Olfield
givenname: Peter
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: polfield
mail: polfield@example.com
telephonenumber: +1 408 555 8231
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 1376
userpassword: monologue
dn: uid=awalker, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Andy Walker
sn: Walker
givenname: Andy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Cupertino
uid: awalker
mail: awalker@example.com
telephonenumber: +1 408 555 9199
facsimiletelephonenumber: +1 408 555 3372
roomnumber: 0061
userpassword: detonable
dn: uid=lrentz, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Lex Rentz
sn: Rentz
givenname: Lex
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: lrentz
mail: lrentz@example.com
telephonenumber: +1 408 555 2019
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 2203
userpassword: calcium
dn: uid=jvaughan, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jeff Vaughan
sn: Vaughan
givenname: Jeff
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: jvaughan
mail: jvaughan@example.com
telephonenumber: +1 408 555 4543
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 1734
userpassword: appoint
dn: uid=bfrancis, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Barbara Francis
sn: Francis
givenname: Barbara
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Santa Clara
uid: bfrancis
mail: bfrancis@example.com
telephonenumber: +1 408 555 9111
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 3743
userpassword: holystone
dn: uid=ewalker, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Eric Walker
sn: Walker
givenname: Eric
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Payroll
ou: People
l: Cupertino
uid: ewalker
mail: ewalker@example.com
telephonenumber: +1 408 555 6387
facsimiletelephonenumber: +1 408 555 8721
roomnumber: 2295
userpassword: beguile
dn: uid=tjames, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Tobias James
sn: James
givenname: Tobias
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: tjames
mail: tjames@example.com
telephonenumber: +1 408 555 2458
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 0730
userpassword: turtle
dn: uid=brigden, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Bjorn Rigden
sn: Rigden
givenname: Bjorn
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Sunnyvale
uid: brigden
mail: brigden@example.com
telephonenumber: +1 408 555 5263
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 1643
userpassword: purple
dn: uid=ecruse, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Eric Cruse
sn: Cruse
givenname: Eric
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Santa Clara
uid: ecruse
mail: ecruse@example.com
telephonenumber: +1 408 555 0648
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 4233
userpassword: platelet
dn: uid=rjense2, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Randy Jensen
sn: Jensen
givenname: Randy
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Sunnyvale
uid: rjense2
mail: rjense2@example.com
telephonenumber: +1 408 555 9045
facsimiletelephonenumber: +1 408 555 1992
roomnumber: 1984
userpassword: transpose
dn: uid=rhunt, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Richard Hunt
sn: Hunt
givenname: Richard
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Accounting
ou: People
l: Santa Clara
uid: rhunt
mail: rhunt@example.com
telephonenumber: +1 408 555 0139
facsimiletelephonenumber: +1 408 555 8473
roomnumber: 0718
userpassword: becloud
dn: uid=bparker, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Barry Parker
sn: Parker
givenname: Barry
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Sunnyvale
uid: bparker
mail: bparker@example.com
telephonenumber: +1 408 555 4647
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 1148
userpassword: lenticular
dn: uid=ealexand, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Erin Alexander
sn: Alexander
givenname: Erin
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Santa Clara
uid: ealexand
mail: ealexand@example.com
telephonenumber: +1 408 555 5563
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 2434
userpassword: galactose
dn: uid=mtyler, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Matthew Tyler
sn: Tyler
givenname: Matthew
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Human Resources
ou: People
l: Cupertino
uid: mtyler
mail: mtyler@example.com
telephonenumber: +1 408 555 7907
facsimiletelephonenumber: +1 408 555 4661
roomnumber: 2701
userpassword: instantiate
dn: uid=elott, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Emanuel Lott
sn: Lott
givenname: Emanuel
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Testing
ou: People
l: Santa Clara
uid: elott
mail: elott@example.com
telephonenumber: +1 408 555 0932
facsimiletelephonenumber: +1 408 555 9751
roomnumber: 3906
userpassword: holdout
dn: uid=cnewport, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Christoph Newport
sn: Newport
givenname: Christoph
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Sunnyvale
uid: cnewport
mail: cnewport@example.com
telephonenumber: +1 408 555 0066
facsimiletelephonenumber: +1 408 555 9332
roomnumber: 0056
userpassword: expertise
dn: uid=jvedder, ou=People, o=import ldif stress test,dc=example,dc=com
cn: Jeff Vedder
sn: Vedder
givenname: Jeff
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
ou: Product Development
ou: People
l: Santa Clara
uid: jvedder
mail: jvedder@example.com
telephonenumber: +1 408 555 4668
facsimiletelephonenumber: +1 408 555 0111
roomnumber: 3445
userpassword: befitting
dn: cn=Accounting Managers,ou=groups,o=import ldif stress test,dc=example,dc=com
objectclass: top
objectclass: groupOfUniqueNames
cn: Accounting Managers
ou: groups
uniquemember: uid=scarter, ou=People, o=import ldif stress test,dc=example,dc=com
uniquemember: uid=tmorris, ou=People, o=import ldif stress test,dc=example,dc=com
description: People who can manage accounting entries
dn: cn=HR Managers,ou=groups,o=import ldif stress test,dc=example,dc=com
objectclass: top
objectclass: groupOfUniqueNames
cn: HR Managers
ou: groups
uniquemember: uid=kvaughan, ou=People, o=import ldif stress test,dc=example,dc=com
uniquemember: uid=cschmith, ou=People, o=import ldif stress test,dc=example,dc=com
description: People who can manage HR entries
dn: cn=QA Managers,ou=groups,o=import ldif stress test,dc=example,dc=com
objectclass: top
objectclass: groupOfUniqueNames
cn: QA Managers
ou: groups
uniquemember: uid=abergin, ou=People, o=import ldif stress test,dc=example,dc=com
uniquemember: uid=jwalker, ou=People, o=import ldif stress test,dc=example,dc=com
description: People who can manage QA entries
dn: cn=PD Managers,ou=groups,o=import ldif stress test,dc=example,dc=com
objectclass: top
objectclass: groupOfUniqueNames
cn: PD Managers
ou: groups
uniquemember: uid=kwinters, ou=People, o=import ldif stress test,dc=example,dc=com
uniquemember: uid=trigden, ou=People, o=import ldif stress test,dc=example,dc=com
description: People who can manage engineer entries
dn: ou=Netscape Servers,o=import ldif stress test,dc=example,dc=com
objectclass: top
objectclass: organizationalUnit
ou: Netscape Servers
description: Standard branch for SuiteSpot Server registration
opends/tests/staf-tests/stress-tests/testcases/importldif/basic/importldif_basic.xml
New file
@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <defaultcall function="main_importldif_basic"/>
  <function name="main_importldif_basic" scope="local">
    <sequence>
      <block name="'main_importldif_basic'">
        <try>
          <sequence>
            <script>
              CurrentTestPath['group']='importldif'
              CurrentTestPath['suite']='basic'
              __group=CurrentTestPath['group']
              __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
            </script>
            <!--- Test Suite information
            #@TestSuiteName       Import LDIF basic
            #@TestSuitePurpose    Verify import of entries in ldif file
            #@TestSuiteID         Suite
            #@TestSuiteGroup      Basic
            #@TestGroup           Basic
            #@TestScript          importldif_bin_attr.xml
            #@TestHTMLLink        http://www.forgerock.org/
            -->
            <call function="'testSuite_Preamble'"/>
            <try>
              <sequence>
                <call function="'common_setup'">
                  {
                    'quickStart'    : False ,
                    'startServer'   : False ,
                    'loadData'      : True ,
                    'ldifFile'      : '%s/importldif/importldif_start.ldif' % remote.data ,
                    'stopServer'    : False
                  }
                </call>
                <!-- List of Import of Test Functions -->
                <script>
                  importList=[]
                  importList.append('basic/importldif_basic_tests')
                </script>
                <!-- Import the files for this test suite -->
                <iterate var="__import" in="importList">
                  <import machine="STAF_LOCAL_HOSTNAME"
                    file="'%s/%s.xml' % (__groupdir,__import)"/>
                </iterate>
                <!-- Specific to basic import tests -->
                <!-- List of Test Cases -->
                <script>
                  testsList=[]
                  testsList.append('importldif_basic_001')
                </script>
                <!-- Execute the Tests -->
                <iterate var="__test" in="testsList">
                  <sequence>
                    <call function="'%s' % (__test)" />
                  </sequence>
                </iterate>
              </sequence>
            <catch exception="'STAFException.TestSuite.SetupException'">
              <sequence>
                <message log="1" level="'fatal'">
                  'Setup of test suite failed.'
                </message>
                <rethrow/>
              </sequence>
            </catch>
            <finally>
              <message>'Test Cases Completed.'</message>
            </finally>
            </try>
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Test Suite Cleanup.'</message>
              <try>
                <call function="'common_cleanup'" >
                  { 'deleteSuffix' : False }
                </call>
              <catch exception="'STAFException'">
                <sequence>
                  <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                </sequence>
              </catch>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/basic/importldif_basic_tests.xml
New file
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <!-- Definition of Test Cases -->
  <!--- Test Cases : ImportLDIF: Binary Attributes -->
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Out of Box
  #@TestName            ImportLDIF: Out of Box
  #@TestID              importldif_basic_001
  #@TestPurpose         Verify import LDIF with out of box settings
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_basic_001" scope="local">
    <testcase name="getTestCaseName('Out of Box')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Test Name = %s' % STAXCurrentTestcase
            </message>
            <call function="'testCase_Preamble'"/>
            <message>
             'Import Ldif: Out-Of-Box: Preamble - Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
            </message>
            <call function="'StopDsWithScript'">
            { 'location'    : STAF_REMOTE_HOSTNAME,
              'dsHost'      : DIRECTORY_INSTANCE_HOST,
              'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
              'dsBindDN'    : DIRECTORY_INSTANCE_DN,
              'dsBindPwd'   : DIRECTORY_INSTANCE_PSWD }
            </call>
            <message>
               'Import Ldif: Out-Of-Box: Preamble - Make an make-ldif template file'
            </message>
            <script>
                numberOfEntries=15000000
            </script>
            <call function="'MakeAMakeLdifTemplate'">
              { 'numEntries'         : numberOfEntries ,
                'templateFile'       : '%s/import_Entries_150k.template' % (remote.temp) }
            </call>
            <message>
               'Import Ldif: Out-Of-Box: Preamble - Make the ldif file'
            </message>
            <call function="'MakeLdifWithScript'">
              { 'templateFile'   : '%s/import_Entries_150k.template' % (remote.temp)  ,
                'ldifFile'       : '%s/import_Entries_150k.ldif' % (remote.temp)  }
            </call>
            <message>
               'Import Ldif: Out-Of-Box: Import large ldif file'
            </message>
            <call function="'ImportLdifWithScript'">
            { 'location'    : STAF_REMOTE_HOSTNAME ,
              'ldifFile'    : '%s/import_Entries_150k.ldif' % remote.temp,
              'backEnd'     : 'userRoot'}
            </call>
            <script>
             returnString = STAXResult[0][1]
            </script>
            <call function="'checktestString'">
                { 'returnString'       : returnString ,
                  'expectedString'     : 'skipped 0, rejected 0' }
            </call>
            <message>
             'Import Ldif: Out-Of-Box: Start DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
            </message>
            <call function="'StartDsWithScript'">
            { 'location'  : STAF_REMOTE_HOSTNAME }
            </call>
            <!--- Check that DS started -->
            <call function="'isAlive'">
              { 'noOfLoops'        : 10 ,
                'noOfMilliSeconds' : 5000 }
            </call>
            <message>
             'Import Ldif: Out-Of-Box: Search for certain entries that were imported'
            </message>
            <call function="'checkImport'">
            { 'expectedEntries' : ['uid=user.1,ou=People,dc=com' ,
                                   'uid=user.10000,ou=People,dc=com' ,
                                   'uid=user.100000,ou=People,dc=com' ,
                                   'uid=user.1000000,ou=People,dc=com' ,
                                   'uid=user.14000000,ou=People,dc=com' ,
                                   'uid=user.14999999,ou=People,dc=com'] ,
              'startDS'         : 'no'
            }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/binary_attributes/importldif_binary_attributes.xml
New file
@@ -0,0 +1,138 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <defaultcall function="main_importldif_binary_attributes"/>
  <function name="main_importldif_binary_attributes" scope="local">
    <sequence>
      <block name="'main_importldif_binary_attributes'">
        <try>
          <sequence>
            <script>
              CurrentTestPath['group']='importldif'
              CurrentTestPath['suite']='binary_attributes'
              __group=CurrentTestPath['group']
              __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
            </script>
            <!--- Test Suite information
            #@TestSuiteName       Import LDIF Binary Attributes
            #@TestSuitePurpose    Verify import of binary attributes in ldif file
            #@TestSuiteID         Suite
            #@TestSuiteGroup      Basic
            #@TestGroup           Basic
            #@TestScript          importldif_bin_attr.xml
            #@TestHTMLLink        http://www.forgerock.org/
            -->
            <call function="'testSuite_Preamble'"/>
            <try>
              <sequence>
                <call function="'common_setup'">
                  {
                    'quickStart'    : False ,
                    'startServer'   : False ,
                    'loadData'      : True ,
                    'ldifFile'      : '%s/importldif/importldif_start.ldif' % remote.data ,
                    'stopServer'    : False
                  }
                </call>
                <!-- List of Import of Test Functions -->
                <script>
                  importList=[]
                  importList.append('binary_attributes/importldif_binary_attributes_tests')
                </script>
                <!-- Import the files for this test suite -->
                <iterate var="__import" in="importList">
                  <import machine="STAF_LOCAL_HOSTNAME"
                    file="'%s/%s.xml' % (__groupdir,__import)"/>
                </iterate>
                <!-- Specific to basic import tests -->
                <!-- List of Test Cases -->
                <script>
                  testsList=[]
                  testsList.append('importldif_binary_attributes_001')
                  testsList.append('importldif_binary_attributes_002')
                  testsList.append('importldif_binary_attributes_003')
                </script>
                <!-- Execute the Tests -->
                <iterate var="__test" in="testsList">
                  <sequence>
                    <call function="'%s' % (__test)" />
                  </sequence>
                </iterate>
              </sequence>
            <catch exception="'STAFException.TestSuite.SetupException'">
              <sequence>
                <message log="1" level="'fatal'">
                  'Setup of test suite failed.'
                </message>
                <rethrow/>
              </sequence>
            </catch>
            <finally>
              <message>'Test Cases Completed.'</message>
            </finally>
            </try>
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Test Suite Cleanup.'</message>
              <try>
                <call function="'common_cleanup'" >
                  { 'deleteSuffix' : False }
                </call>
              <catch exception="'STAFException'">
                <sequence>
                  <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                </sequence>
              </catch>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/binary_attributes/importldif_binary_attributes_tests.xml
New file
@@ -0,0 +1,720 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <!-- Definition of Test Cases -->
  <!--- Test Cases : ImportLDIF: Binary Attributes -->
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Binary Attributes
  #@TestName            ImportLDIF: Binary Attributes
  #@TestID              importldif_binary_attributes_001
  #@TestPurpose         Verify basic 100k import LDIF operations
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestStep            Delete the ldif file.
  #@TestStep            Delete the template file.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_binary_attributes_001" scope="local">
    <testcase name="getTestCaseName('Binary Attributes 100k')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Test Name = %s' % STAXCurrentTestcase
            </message>
            <script>
              timerDuration   = '620m'
              numberOfEntries = 100000
              totalEntries    = numberOfEntries + 2
              ldifTemplate    = '%s/%s_entries.template' % (remote.temp, numberOfEntries)
              ldifFile        = '%s/%s_entries.ldif' % (remote.temp, numberOfEntries)
            </script>
            <!-- StopDS -->
            <call function="'StopDsWithScript'">
              { 'location' : STAF_REMOTE_HOSTNAME }
            </call>
            <!-- Check if 'ldifFile' exists -->
            <call function="'GetEntry'">
              {
              'location'  : STAF_REMOTE_HOSTNAME ,
              'entry'     : ldifFile ,
              'attribute' : 'TYPE'
              }
            </call>
            <if expr="RC == 48">
              <sequence>
                <call function="'testStep'">
                  { 'stepMessage' : 'Make template for makeldif.' }
                </call>
                <call function="'MakeAMakeLdifTemplate'">
                  {
                  'numEntries'           : numberOfEntries ,
                  'additionalAttributes' : True ,
                  'templateFile'         : ldifTemplate ,
                  'templateLocation'     : STAF_REMOTE_HOSTNAME
                  }
                </call>
                <call function="'testStep'">
                  { 'stepMessage' : 'Create ldif file for import using makeldif.' }
                </call>
                <call function="'MakeLdifWithScript'">
                  {
                  'location'     : STAF_REMOTE_HOSTNAME ,
                  'templateFile' : ldifTemplate ,
                  'ldifFile'     : ldifFile
                  }
                </call>
              </sequence>
              <else>
                <call function="'testStep'">
                  { 'stepMessage' : 'Template and ldif file already created.' }
                </call>
              </else>
            </if>
            <call function="'testStep'">
              { 'stepMessage' : 'Import the LDIF file.' }
            </call>
            <call function="'ImportLdifWithScript'">
            {
              'location'   : STAF_REMOTE_HOSTNAME ,
              'ldifFile'   : ldifFile ,
              'backEnd'    : 'userRoot'
            }
            </call>
            <script>
              returnString = STAXResult[0][1]
              msg = 'Processed %s entries, imported %s, skipped 0, rejected 0' \
                    % (totalEntries,totalEntries)
            </script>
            <call function="'checktestString'">
              {
              'returnString'   : returnString ,
              'expectedString' : msg
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Start the Directory Server.' }
            </call>
            <call function="'StartDsWithScript'">
              { 'location' : STAF_REMOTE_HOSTNAME }
            </call>
            <script>
              returnString = STAXResult[0][1]
              msg = 'The database backend userRoot containing %s entries has started' \
                    % totalEntries
            </script>
            <call function="'checktestString'">
              {
              'returnString'   : returnString ,
              'expectedString' : msg
              }
            </call>
            <!--- Check that DS started -->
            <call function="'isAlive'">
              {
              'noOfLoops'        : 10 ,
              'noOfMilliSeconds' : 5000
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Verify import LDIF operations.' }
            </call>
            <call function="'checkImport'">
              {
                'expectedEntries' : ['uid=user.0,ou=People,dc=com' ,
                                     'uid=user.10000,ou=People,dc=com' ,
                                     'uid=user.20000,ou=People,dc=com' ,
                                     'uid=user.30000,ou=People,dc=com' ,
                                     'uid=user.40000,ou=People,dc=com' ,
                                     'uid=user.50000,ou=People,dc=com' ,
                                     'uid=user.60000,ou=People,dc=com' ,
                                     'uid=user.70000,ou=People,dc=com' ,
                                     'uid=user.80000,ou=People,dc=com' ,
                                     'uid=user.90000,ou=People,dc=com' ,
                                     'uid=user.99999,ou=People,dc=com'] ,
                'startDS'         : 'no'
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Delete the ldif file.' }
            </call>
            <call function="'deleteFile'">
              {
              'location' : STAF_REMOTE_HOSTNAME,
              'filename' : ldifFile
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Delete the template file.' }
            </call>
            <call function="'deleteFile'">
              {
              'location' : STAF_REMOTE_HOSTNAME,
              'filename' : ldifTemplate
              }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Binary Attributes
  #@TestName            ImportLDIF: Binary Attributes
  #@TestID              importldif_binary_attributes_002
  #@TestPurpose         Verify basic 6m import LDIF operations
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestStep            Delete the ldif file.
  #@TestStep            Delete the template file.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_binary_attributes_002" scope="local">
    <testcase name="getTestCaseName('Binary Attributes 6m')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Test Name = %s' % STAXCurrentTestcase
            </message>
            <script>
              timerDuration   = '620m'
              numberOfEntries = 6000000
              totalEntries    = numberOfEntries + 2
              ldifTemplate    = '%s/%s_entries.template' % (remote.temp, numberOfEntries)
              ldifFile        = '%s/%s_entries.ldif' % (remote.temp, numberOfEntries)
            </script>
            <!-- StopDS -->
            <call function="'StopDsWithScript'">
              { 'location' : STAF_REMOTE_HOSTNAME }
            </call>
            <message>
              'Update java.properties file %s/%s/config/java.properties' \
              % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)
            </message>
            <call function="'copyFile'">
              {
              'location'   : STAF_REMOTE_HOSTNAME ,
              'srcfile'    : '%s/%s/config/java.properties' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) ,
              'destfile'   : '%s/java.properties' % local.temp ,
              'remotehost' : STAXServiceMachine
              }
            </call>
            <script>
              rc = java_properties('%s/java.properties' % local.temp,
                                   'import-ldif.offline',
                                   [ "-server", "-Xms2048m", "-Xmx3072m" ])
            </script>
            <message>'RC %s' % rc</message>
            <call function="'copyFile'">
              {
              'location'   : STAXServiceMachine ,
              'srcfile'    : '%s/java.properties' % local.temp ,
              'destfile'   : '%s/%s/config/java.properties' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) ,
              'remotehost' : STAF_REMOTE_HOSTNAME
              }
            </call>
            <call function="'dsJavaPropertiesWithScript'">
            { 'location'    : STAF_REMOTE_HOSTNAME }
            </call>
            <!-- Check if 'ldifFile' exists -->
            <call function="'GetEntry'">
              {
              'location'  : STAF_REMOTE_HOSTNAME ,
              'entry'     : ldifFile ,
              'attribute' : 'TYPE'
              }
            </call>
            <if expr="RC == 48">
              <sequence>
                <call function="'testStep'">
                  { 'stepMessage' : 'Make template for makeldif.' }
                </call>
                <call function="'MakeAMakeLdifTemplate'">
                  {
                  'numEntries'           : numberOfEntries ,
                  'additionalAttributes' : True ,
                  'templateFile'         : ldifTemplate ,
                  'templateLocation'     : STAF_REMOTE_HOSTNAME
                  }
                </call>
                <call function="'testStep'">
                  { 'stepMessage' : 'Create ldif file for import using makeldif.' }
                </call>
                <call function="'MakeLdifWithScript'">
                  {
                  'location'     : STAF_REMOTE_HOSTNAME ,
                  'templateFile' : ldifTemplate ,
                  'ldifFile'     : ldifFile
                  }
                </call>
              </sequence>
              <else>
                <call function="'testStep'">
                  { 'stepMessage' : 'Template and ldif file already created.' }
                </call>
              </else>
            </if>
            <call function="'testStep'">
              { 'stepMessage' : 'Import the LDIF file.' }
            </call>
            <call function="'ImportLdifWithScript'">
            {
              'location'   : STAF_REMOTE_HOSTNAME ,
              'ldifFile'   : ldifFile ,
              'backEnd'    : 'userRoot'
            }
            </call>
            <script>
              returnString = STAXResult[0][1]
              msg = 'Processed %s entries, imported %s, skipped 0, rejected 0' \
                    % (totalEntries,totalEntries)
            </script>
            <call function="'checktestString'">
              {
              'returnString'   : returnString ,
              'expectedString' : msg
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Start the Directory Server.' }
            </call>
            <call function="'StartDsWithScript'">
              { 'location' : STAF_REMOTE_HOSTNAME }
            </call>
            <script>
              returnString = STAXResult[0][1]
              msg = 'The database backend userRoot containing %s entries has started' \
                    % totalEntries
            </script>
            <call function="'checktestString'">
              {
              'returnString'   : returnString ,
              'expectedString' : msg
              }
            </call>
            <!--- Check that DS started -->
            <call function="'isAlive'">
              {
              'noOfLoops'        : 10 ,
              'noOfMilliSeconds' : 5000
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Verify import LDIF operations.' }
            </call>
              <call function="'checkImport'">
                {
                'expectedEntries' : ['uid=user.0,ou=People,dc=com' ,
                                     'uid=user.1000000,ou=People,dc=com' ,
                                     'uid=user.1500000,ou=People,dc=com' ,
                                     'uid=user.2000000,ou=People,dc=com' ,
                                     'uid=user.2500000,ou=People,dc=com' ,
                                     'uid=user.3000000,ou=People,dc=com' ,
                                     'uid=user.3500000,ou=People,dc=com' ,
                                     'uid=user.4000000,ou=People,dc=com' ,
                                     'uid=user.4500000,ou=People,dc=com' ,
                                     'uid=user.5000000,ou=People,dc=com' ,
                                     'uid=user.5999999,ou=People,dc=com'] ,
                'startDS'         : 'no'
                }
              </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Delete the ldif file.' }
            </call>
            <call function="'deleteFile'">
              {
              'location' : STAF_REMOTE_HOSTNAME,
              'filename' : ldifFile
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Delete the template file.' }
            </call>
            <call function="'deleteFile'">
              {
              'location' : STAF_REMOTE_HOSTNAME,
              'filename' : ldifTemplate
              }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Binary Attributes
  #@TestName            ImportLDIF: Binary Attributes
  #@TestID              importldif_binary_attributes_003
  #@TestPurpose         Verify basic 10m import LDIF operations
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestStep            Delete the ldif file.
  #@TestStep            Delete the template file.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_binary_attributes_003" scope="local">
    <testcase name="getTestCaseName('Binary Attributes 10m')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Test Name = %s' % STAXCurrentTestcase
            </message>
            <script>
              timerDuration   = '620m'
              numberOfEntries = 10000000
              totalEntries    = numberOfEntries + 2
              ldifTemplate    = '%s/%s_entries.template' % (remote.temp, numberOfEntries)
              ldifFile        = '%s/%s_entries.ldif' % (remote.temp, numberOfEntries)
            </script>
                <message>
                  'Import Ldif: Binary Attribute: Create custom indexes'
                </message>
                <call function="'dsconfig'">
                  {
                  'dsInstanceHost'   : DIRECTORY_INSTANCE_HOST ,
                  'dsInstanceDn'     : DIRECTORY_INSTANCE_DN ,
                  'dsInstancePswd'   : DIRECTORY_INSTANCE_PSWD ,
                  'subcommand'       : 'create-local-db-index' ,
                  'objectType'       : 'backend-name' ,
                  'objectName'       : DIRECTORY_INSTANCE_BE ,
                  'optionsString'    : '--index-name st --set index-type:equality --set index-type:substring'
                  }
                </call>
                <call function="'dsconfig'">
                  {
                  'dsInstanceHost'   : DIRECTORY_INSTANCE_HOST ,
                  'dsInstanceDn'     : DIRECTORY_INSTANCE_DN ,
                  'dsInstancePswd'   : DIRECTORY_INSTANCE_PSWD ,
                  'subcommand'       : 'create-local-db-index' ,
                  'objectType'       : 'backend-name' ,
                  'objectName'       : DIRECTORY_INSTANCE_BE ,
                  'optionsString'    : '--index-name l --set index-type:presence --set index-type:substring'
                  }
                </call>
            <!-- StopDS -->
            <call function="'StopDsWithScript'">
              { 'location' : STAF_REMOTE_HOSTNAME }
            </call>
            <message>
              'Update java.properties file %s/%s/config/java.properties' \
              % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)
            </message>
            <call function="'copyFile'">
              {
              'location'   : STAF_REMOTE_HOSTNAME ,
              'srcfile'    : '%s/%s/config/java.properties' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) ,
              'destfile'   : '%s/java.properties' % local.temp ,
              'remotehost' : STAXServiceMachine
              }
            </call>
            <script>
              rc = java_properties('%s/java.properties' % local.temp,
                                   'import-ldif.offline',
                                   [ "-server", "-Xms2048m", "-Xmx3072m" ])
            </script>
            <message>'RC %s' % rc</message>
            <call function="'copyFile'">
              {
              'location'   : STAXServiceMachine ,
              'srcfile'    : '%s/java.properties' % local.temp ,
              'destfile'   : '%s/%s/config/java.properties' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) ,
              'remotehost' : STAF_REMOTE_HOSTNAME
              }
            </call>
            <call function="'dsJavaPropertiesWithScript'">
              { 'location'    : STAF_REMOTE_HOSTNAME }
            </call>
            <!-- Check if 'ldifFile' exists -->
            <call function="'GetEntry'">
              {
              'location'  : STAF_REMOTE_HOSTNAME ,
              'entry'     : ldifFile ,
              'attribute' : 'TYPE'
              }
            </call>
            <if expr="RC == 48">
              <sequence>
                <call function="'testStep'">
                  { 'stepMessage' : 'Make template for makeldif.' }
                </call>
                <call function="'MakeAMakeLdifTemplate'">
                  {
                  'numEntries'           : numberOfEntries ,
                  'additionalAttributes' : True ,
                  'templateFile'         : ldifTemplate ,
                  'templateLocation'     : STAF_REMOTE_HOSTNAME
                  }
                </call>
                <call function="'testStep'">
                  { 'stepMessage' : 'Create ldif file for import using makeldif.' }
                </call>
                <call function="'MakeLdifWithScript'">
                  {
                  'location'     : STAF_REMOTE_HOSTNAME ,
                  'templateFile' : ldifTemplate ,
                  'ldifFile'     : ldifFile
                  }
                </call>
              </sequence>
              <else>
                <call function="'testStep'">
                  { 'stepMessage' : 'Template and ldif file already created.' }
                </call>
              </else>
            </if>
            <call function="'testStep'">
              { 'stepMessage' : 'Import the LDIF file.' }
            </call>
            <call function="'ImportLdifWithScript'">
            {
              'location'   : STAF_REMOTE_HOSTNAME ,
              'ldifFile'   : ldifFile ,
              'backEnd'    : 'userRoot'
            }
            </call>
            <script>
              returnString = STAXResult[0][1]
              msg = 'Processed %s entries, imported %s, skipped 0, rejected 0' \
                    % (totalEntries,totalEntries)
            </script>
            <call function="'checktestString'">
              {
              'returnString'   : returnString ,
              'expectedString' : msg
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Start the Directory Server.' }
            </call>
            <call function="'StartDsWithScript'">
              { 'location' : STAF_REMOTE_HOSTNAME }
            </call>
            <script>
              returnString = STAXResult[0][1]
              msg = 'The database backend userRoot containing %s entries has started' \
                    % totalEntries
            </script>
            <call function="'checktestString'">
              {
              'returnString'   : returnString ,
              'expectedString' : msg
              }
            </call>
            <!--- Check that DS started -->
            <call function="'isAlive'">
              {
              'noOfLoops'        : 10 ,
              'noOfMilliSeconds' : 5000
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Verify import LDIF operations.' }
            </call>
              <call function="'checkImport'">
                {
                'expectedEntries' : ['uid=user.0,ou=People,dc=com' ,
                                     'uid=user.1000000,ou=People,dc=com' ,
                                     'uid=user.1500000,ou=People,dc=com' ,
                                     'uid=user.2000000,ou=People,dc=com' ,
                                     'uid=user.2500000,ou=People,dc=com' ,
                                     'uid=user.3000000,ou=People,dc=com' ,
                                     'uid=user.3500000,ou=People,dc=com' ,
                                     'uid=user.4000000,ou=People,dc=com' ,
                                     'uid=user.4500000,ou=People,dc=com' ,
                                     'uid=user.5000000,ou=People,dc=com' ,
                                     'uid=user.5999999,ou=People,dc=com'] ,
                'startDS'         : 'no'
                }
              </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Delete the ldif file.' }
            </call>
            <call function="'deleteFile'">
              {
              'location' : STAF_REMOTE_HOSTNAME,
              'filename' : ldifFile
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Delete the template file.' }
            </call>
            <call function="'deleteFile'">
              {
              'location' : STAF_REMOTE_HOSTNAME,
              'filename' : ldifTemplate
              }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/importldif.xml
New file
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <defaultcall function="main_importldif" />
  <function name="main_importldif">
    <function-list-args>
      <function-required-arg name="STAXParentID"/>
    </function-list-args>
    <sequence>
      <try>
        <block name="'importldif'">
          <sequence>
            <!--- Load the job environment for the test group execution -->
            <import machine="STAF_LOCAL_HOSTNAME"
                    file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
            <call function="'loadJobEnvironment'">
                 { 'parent' : STAXParentID }
            </call>
            <script>
              CurrentTestPath['group']='importldif'
              _group=CurrentTestPath['group']
            </script>
            <call function="'testGroup_Preamble'" />
            <script>
            suiteList = []
            #suiteList.append('basic')
            #suiteList.append('binary_attributes')
            #suiteList.append('properties')
            #suiteList.append('indexes')
            suiteList.append('tasks')
            def get_testsuite_filename(testsdir,groupname,suitename):
              return '%s/testcases/%s/%s/%s_%s.xml' % (testsdir,groupname,suitename,groupname,suitename)
            def get_testsuite_function(groupname,suitename):
              return 'main_%s_%s' % (groupname,suitename)
            </script>
            <!-- Run the test suites -->
            <iterate  var="_suite" in="suiteList">
              <sequence>
                <try>
                  <sequence>
                    <import machine="STAF_LOCAL_HOSTNAME"
                      file="get_testsuite_filename(TESTS_DIR,_group,_suite)"/>
                    <call function="get_testsuite_function(_group,_suite)" />
                  </sequence>
                <catch exception="'STAFException.TestSuite.SetupException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message>
                  </sequence>
                </catch>
                <catch exception="'STAFException.TestSuite.MainException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message>
                  </sequence>
                </catch>
                <catch exception="'STAFException.TestSuite.CleanupException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message>
                  </sequence>
                </catch>
                </try>
              </sequence>
            </iterate>
          </sequence>
        </block>
        <catch exception="'STAXException.TestGroupException'">
          <sequence>
            <message log="1" level="'fatal'">'Execution of Test Group Failed'</message>
          </sequence>
        </catch>
        <finally>
          <!-- Test Group postamble -->
          <call function="'testGroup_Postamble'"/>
        </finally>
      </try>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/indexes/importldif_indexes.xml
New file
@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <defaultcall function="main_importldif_indexes"/>
  <function name="main_importldif_indexes" scope="local">
    <sequence>
      <block name="'main_importldif_indexes'">
        <try>
          <sequence>
            <script>
              CurrentTestPath['group']='importldif'
              CurrentTestPath['suite']='indexes'
              __group=CurrentTestPath['group']
              __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
            </script>
            <!--- Test Suite information
            #@TestSuiteName       Import LDIF Binary Attributes
            #@TestSuitePurpose    Verify import of binary attributes in ldif file
            #@TestSuiteID         Suite
            #@TestSuiteGroup      Basic
            #@TestGroup           Basic
            #@TestScript          importldif_bin_attr.xml
            #@TestHTMLLink        http://www.forgerock.org/
            -->
            <call function="'testSuite_Preamble'"/>
            <try>
              <sequence>
                <call function="'common_setup'">
                  {
                    'quickStart'    : False ,
                    'startServer'   : False ,
                    'loadData'      : True ,
                    'ldifFile'      : '%s/importldif/importldif_start.ldif' % remote.data ,
                    'stopServer'    : False
                  }
                </call>
                <!-- List of Import of Test Functions -->
                <script>
                  importList=[]
                  importList.append('indexes/importldif_indexes_tests')
                </script>
                <!-- Import the files for this test suite -->
                <iterate var="__import" in="importList">
                  <import machine="STAF_LOCAL_HOSTNAME"
                    file="'%s/%s.xml' % (__groupdir,__import)"/>
                </iterate>
                <!-- Specific to basic import tests -->
                <!-- List of Test Cases -->
                <script>
                  testsList=[]
                  testsList.append('importldif_indexes_001')
                </script>
                <!-- Execute the Tests -->
                <iterate var="__test" in="testsList">
                  <sequence>
                    <call function="'%s' % (__test)" />
                  </sequence>
                </iterate>
              </sequence>
            <catch exception="'STAFException.TestSuite.SetupException'">
              <sequence>
                <message log="1" level="'fatal'">
                  'Setup of test suite failed.'
                </message>
                <rethrow/>
              </sequence>
            </catch>
            <finally>
              <message>'Test Cases Completed.'</message>
            </finally>
            </try>
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Test Suite Cleanup.'</message>
              <try>
                <call function="'common_cleanup'" >
                  { 'deleteSuffix' : False }
                </call>
              <catch exception="'STAFException'">
                <sequence>
                  <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                </sequence>
              </catch>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/indexes/importldif_indexes_tests.xml
New file
@@ -0,0 +1,224 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <!-- Definition of Test Cases -->
  <!--- Test Cases : ImportLDIF: Indexes -->
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Indexes
  #@TestName            ImportLDIF: Indexes
  #@TestID              importldif_indexes_001
  #@TestPurpose         Verify import LDIF with Indexes
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_indexes_001" scope="local">
    <testcase name="getTestCaseName('Many Indexes')">
      <sequence>
        <try>
          <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
                 'Import Ldif: Many Indexes: Preamble - Create many indexes'
                </message>
                <script>
                  indexes_five = ['cn', 'givenName', 'sn', 'uid']
                </script>
                <iterate var="currIndex" in="indexes_five" indexvar="index">
                  <call function="'dsconfig'">
                  { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                    'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
                    'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
                    'subcommand'           : 'set-local-db-index-prop' ,
                    'objectType'           : 'backend-name' ,
                    'objectName'           : 'userRoot',
                    'optionsString'        : '--index-name %s --add index-type:approximate --add index-type:equality --add index-type:ordering --add index-type:presence --add index-type:substring ' % currIndex ,
                    'expectedRC'           : 0 }
                  </call>
                </iterate>
                <script>
                  indexes_three = ['aci', 'mail', 'member', 'objectclass', 'telephonenumber', 'uniquemember']
                </script>
                <iterate var="currIndex" in="indexes_three" indexvar="index">
                  <call function="'dsconfig'">
                  { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                    'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
                    'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
                    'subcommand'           : 'set-local-db-index-prop' ,
                    'objectType'           : 'backend-name' ,
                    'objectName'           : 'userRoot',
                    'optionsString'        : '--index-name %s --add index-type:equality --add index-type:presence --add index-type:substring ' % currIndex ,
                    'expectedRC'           : 0 }
                  </call>
                </iterate>
                <call function="'dsconfig'">
                  { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                    'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
                    'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
                    'subcommand'           : 'create-local-db-index' ,
                    'objectType'           : 'backend-name' ,
                    'objectName'           : 'userRoot',
                    'optionsString'        : '--index-name description --add index-type:approximate --add index-type:equality --add index-type:presence --add index-type:substring ' ,
                    'expectedRC'           : 0 }
                </call>
                <call function="'dsconfig'">
                  { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                    'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
                    'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
                    'subcommand'           : 'create-local-db-index' ,
                    'objectType'           : 'backend-name' ,
                    'objectName'           : 'userRoot',
                    'optionsString'        : '--index-name employeeNumber --add index-type:approximate --add index-type:equality --add index-type:ordering --add index-type:presence --add index-type:substring ' ,
                    'expectedRC'           : 0 }
                </call>
                <message>
                 'Import Ldif: Many Indexes: Preamble - List indexes'
                </message>
                <call function="'dsconfig'">
                  { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                    'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
                    'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
                    'subcommand'           : 'list-local-db-indexes' ,
                    'objectType'           : 'backend-name' ,
                    'objectName'           : 'userRoot',
                    'expectedRC'           : 0 }
                </call>
                <message>
                 'Import Ldif: Many Indexes: Preamble - Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
                </message>
                <call function="'StopDsWithScript'">
                { 'location'    : STAF_REMOTE_HOSTNAME,
                  'dsHost'      : DIRECTORY_INSTANCE_HOST,
                  'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
                  'dsBindDN'    : DIRECTORY_INSTANCE_DN,
                  'dsBindPwd'   : DIRECTORY_INSTANCE_PSWD }
                </call>
                <message>
                   'Import Ldif: Many Indexes: Preamble - Make an make-ldif template file'
                </message>
                <script>
                    numberOfEntries='160'
                </script>
                <call function="'MakeAMakeLdifTemplate'">
                  { 'numEntries'         : numberOfEntries ,
                    'templateFile'       : '%s/import_Entries_160.template' % (remote.temp) }
                </call>
                <message>
                   'Import Ldif: Many Indexes: Preamble - Make the ldif file'
                </message>
                <call function="'MakeLdifWithScript'">
                  { 'templateFile'   : '%s/import_Entries_160.template' % (remote.temp)  ,
                    'ldifFile'       : '%s/import_Entries_160.ldif' % (remote.temp)  }
                </call>
                <message>
                   'Import Ldif: Many Indexes: Import large ldif file'
                </message>
                <call function="'ImportLdifWithScript'">
                { 'location'    : STAF_REMOTE_HOSTNAME ,
                  'ldifFile'    : '%s/import_Entries_160.ldif' % remote.temp,
                  'backEnd'     : 'userRoot'}
                </call>
                <script>
                 returnString = STAXResult[0][1]
                </script>
                <call function="'checktestString'">
                    { 'returnString'       : returnString ,
                      'expectedString'     : 'skipped 0, rejected 0' }
                </call>
                <message>
                 'Import Ldif: Many Indexes: Start DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
                </message>
                <call function="'StartDsWithScript'">
                { 'location'  : STAF_REMOTE_HOSTNAME }
                </call>
                <!--- Check that DS started -->
                <call function="'isAlive'">
                  { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 5000 }
                </call>
                <message>
                 'Import Ldif: Many Indexes: Search for certain entries that were imported'
                </message>
                <call function="'checkImport'">
                { 'expectedEntries' : ['uid=user.1,ou=People,dc=com' ,
                                       'uid=user.100,ou=People,dc=com' ,
                                       'uid=user.159,ou=People,dc=com'] ,
                  'startDS'         : 'no'
                }
                </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/properties/importldif_properties.xml
New file
@@ -0,0 +1,138 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <defaultcall function="main_importldif_properties"/>
  <function name="main_importldif_properties" scope="local">
    <sequence>
      <block name="'main_importldif_properties'">
        <try>
          <sequence>
            <script>
              CurrentTestPath['group']='importldif'
              CurrentTestPath['suite']='properties'
              __group=CurrentTestPath['group']
              __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
            </script>
            <!--- Test Suite information
            #@TestSuiteName       Import LDIF Binary Attributes
            #@TestSuitePurpose    Verify import of binary attributes in ldif file
            #@TestSuiteID         Suite
            #@TestSuiteGroup      Basic
            #@TestGroup           Basic
            #@TestScript          importldif_bin_attr.xml
            #@TestHTMLLink        http://www.forgerock.org/
            -->
            <call function="'testSuite_Preamble'"/>
            <try>
              <sequence>
                <call function="'common_setup'">
                  {
                    'quickStart'    : False ,
                    'startServer'   : False ,
                    'loadData'      : True ,
                    'ldifFile'      : '%s/importldif/importldif_start.ldif' % remote.data ,
                    'stopServer'    : False
                  }
                </call>
                <!-- List of Import of Test Functions -->
                <script>
                  importList=[]
                  importList.append('properties/importldif_properties_tests')
                </script>
                <!-- Import the files for this test suite -->
                <iterate var="__import" in="importList">
                  <import machine="STAF_LOCAL_HOSTNAME"
                    file="'%s/%s.xml' % (__groupdir,__import)"/>
                </iterate>
                <!-- Specific to basic import tests -->
                <!-- List of Test Cases -->
                <script>
                  testsList=[]
                  #testsList.append('importldif_properties_001')
                  #testsList.append('importldif_properties_002')
                  testsList.append('importldif_properties_003')
                </script>
                <!-- Execute the Tests -->
                <iterate var="__test" in="testsList">
                  <sequence>
                    <call function="'%s' % (__test)" />
                  </sequence>
                </iterate>
              </sequence>
            <catch exception="'STAFException.TestSuite.SetupException'">
              <sequence>
                <message log="1" level="'fatal'">
                  'Setup of test suite failed.'
                </message>
                <rethrow/>
              </sequence>
            </catch>
            <finally>
              <message>'Test Cases Completed.'</message>
            </finally>
            </try>
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Test Suite Cleanup.'</message>
              <try>
                <call function="'common_cleanup'" >
                  { 'deleteSuffix' : False }
                </call>
              <catch exception="'STAFException'">
                <sequence>
                  <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                </sequence>
              </catch>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/properties/importldif_properties_tests.xml
New file
@@ -0,0 +1,534 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <!-- Definition of Test Cases -->
  <!--- Test Cases : ImportLDIF: Binary Attributes -->
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Large Import Buffer
  #@TestName            ImportLDIF: Large Import Buffer
  #@TestID              importldif_properties_001
  #@TestPurpose         Verify import LDIF with Large Import Buffer
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_properties_001" scope="local">
    <testcase name="getTestCaseName('Large Import Buffer')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Test Name = %s' % STAXCurrentTestcase
            </message>
            <message>
             'Import Ldif: Large Import Buffer: Preamble - Change import buffer size'
            </message>
            <call function="'dsconfig'">
              { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
                'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
                'subcommand'           : 'set-backend-prop' ,
                'objectType'           : 'backend-name' ,
                'objectName'           : 'userRoot',
                'optionsString'        : '--set import-queue-size:1000' ,
                'expectedRC'           : 0 }
              </call>
            <message>
             'Import Ldif: Large Import Buffer: Preamble - Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
            </message>
            <!-- StopDS -->
            <call function="'StopDsWithScript'">
              { 'location' : STAF_REMOTE_HOSTNAME }
            </call>
            <script>
                numberOfEntries = 100000
                totalEntries    = numberOfEntries + 2
                bin_attr_filename = '%s_entries.ldif' % numberOfEntries
                import os.path
                curr_filename=remote.temp + "/" + bin_attr_filename
                curr_file_exists='0'
                if os.path.exists(curr_filename):
                  curr_file_exists='1'
            </script>
            <message>
                  'Import Ldif: Large Import Buffer: Looking for file, %s. File exists? (0=false, 1=true) %s' % (curr_filename, curr_file_exists)
            </message>
            <if expr="curr_file_exists=='0'">
              <sequence>
                <message>
                'Import Ldif: Large Import Buffer: Preamble - Make an make-ldif template file'
                </message>
                <call function="'MakeAMakeLdifTemplate'">
                { 'numEntries'         : numberOfEntries ,
                  'templateFile'       : '%s/import_Entries_100k.template' % (remote.temp) ,
                  'extraLine'          : 'jpegPhoto:: &lt;random:base64:38000&gt;'}
                </call>
                <message>
                  'Import Ldif: Large Import Buffer: Preamble - Make the ldif file'
                </message>
                <call function="'MakeLdifWithScript'">
                { 'templateFile'   : '%s/import_Entries_100k.template' % (remote.temp)  ,
                  'ldifFile'       : curr_filename  }
                </call>
              </sequence>
            </if>
            <call function="'testStep'">
              { 'stepMessage' : 'Import the LDIF file.' }
            </call>
            <call function="'ImportLdifWithScript'">
            {
              'location'   : STAF_REMOTE_HOSTNAME ,
              'ldifFile'   : ldifFile ,
              'backEnd'    : 'userRoot'
            }
            </call>
            <script>
              returnString = STAXResult[0][1]
              msg = 'Processed %s entries, imported %s, skipped 0, rejected 0' \
                    % (totalEntries,totalEntries)
            </script>
            <call function="'checktestString'">
              {
              'returnString'   : returnString ,
              'expectedString' : msg
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Start the Directory Server.' }
            </call>
            <call function="'StartDsWithScript'">
              { 'location' : STAF_REMOTE_HOSTNAME }
            </call>
            <script>
              returnString = STAXResult[0][1]
              msg = 'The database backend userRoot containing %s entries has started' \
                    % totalEntries
            </script>
            <call function="'checktestString'">
              {
              'returnString'   : returnString ,
              'expectedString' : msg
              }
            </call>
            <!--- Check that DS started -->
            <call function="'isAlive'">
              {
              'noOfLoops'        : 10 ,
              'noOfMilliSeconds' : 5000
              }
            </call>
            <call function="'testStep'">
              { 'stepMessage' : 'Verify import LDIF operations.' }
            </call>
            <call function="'checkImport'">
              {
                'expectedEntries' : ['uid=user.0,ou=People,dc=com' ,
                                     'uid=user.10000,ou=People,dc=com' ,
                                     'uid=user.20000,ou=People,dc=com' ,
                                     'uid=user.30000,ou=People,dc=com' ,
                                     'uid=user.40000,ou=People,dc=com' ,
                                     'uid=user.50000,ou=People,dc=com' ,
                                     'uid=user.60000,ou=People,dc=com' ,
                                     'uid=user.70000,ou=People,dc=com' ,
                                     'uid=user.80000,ou=People,dc=com' ,
                                     'uid=user.90000,ou=People,dc=com' ,
                                     'uid=user.99999,ou=People,dc=com'] ,
                'startDS'         : 'no'
              }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Many Threads
  #@TestName            ImportLDIF: Many Threads
  #@TestID              importldif_properties_002
  #@TestPurpose         Verify import LDIF with Many Threads
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_properties_002" scope="local">
    <testcase name="getTestCaseName('Many Threads')">
      <sequence>
        <try>
          <sequence>
                <call function="'testCase_Preamble'"/>
                <message>'Update java.properties file %s/%s/config/java.properties' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)</message>
                <script>
                  rc = java_properties('%s/%s/config/java.properties' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME),
                                       'import-ldif.offline',
                                       [ "-server", "-Xms2048m" ])
                </script>
                <message>'RC %s' % rc</message>
                <call function="'dsJavaPropertiesWithScript'">
                { 'location'    : STAF_REMOTE_HOSTNAME }
                </call>
                <message>
                 'Import Ldif: Many Threads: Preamble - Change import thread count'
                </message>
                <call function="'dsconfig'">
                  { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                    'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
                    'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
                    'subcommand'           : 'set-backend-prop' ,
                    'objectType'           : 'backend-name' ,
                    'objectName'           : 'userRoot',
                    'optionsString'        : '--set import-thread-count:2048' ,
                    'expectedRC'           : 0 }
                  </call>
                <message>
                 'Import Ldif: Many Threads: Preamble - Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
                </message>
                <call function="'StopDsWithScript'">
                { 'location'    : STAF_REMOTE_HOSTNAME,
                  'dsHost'      : DIRECTORY_INSTANCE_HOST,
                  'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
                  'dsBindDN'    : DIRECTORY_INSTANCE_DN,
                  'dsBindPwd'   : DIRECTORY_INSTANCE_PSWD }
                </call>
                <script>
                    numberOfEntries = 100000
                    totalEntries    = numberOfEntries + 2
                    bin_attr_filename = '%s_entries.ldif' % numberOfEntries
                    import os.path
                    curr_filename=remote.temp + "/" + bin_attr_filename
                    curr_file_exists='0'
                    if os.path.exists(curr_filename):
                      curr_file_exists='1'
                </script>
                <message>
                      'Import Ldif: Many Threads: Looking for file, %s. File exists? (0=false, 1=true) %s' % (curr_filename, curr_file_exists)
                </message>
                <if expr="curr_file_exists=='0'">
                  <sequence>
                    <message>
                    'Import Ldif: Many Threads: Preamble - Make an make-ldif template file'
                    </message>
                    <call function="'MakeAMakeLdifTemplate'">
                    { 'numEntries'         : numberOfEntries ,
                      'templateFile'       : '%s/import_Entries_100k.template' % (remote.temp) ,
                      'extraLine'          : 'jpegPhoto:: &lt;random:base64:38000&gt;'}
                    </call>
                    <message>
                      'Import Ldif: Many Threads: Preamble - Make the ldif file'
                    </message>
                    <call function="'MakeLdifWithScript'">
                    { 'templateFile'   : '%s/import_Entries_100k.template' % (remote.temp)  ,
                      'ldifFile'       : curr_filename  }
                    </call>
                  </sequence>
                </if>
                <message>
                   'Import Ldif: Many Threads: Import large ldif file'
                </message>
                <call function="'ImportLdifWithScript'">
                { 'location'    : STAF_REMOTE_HOSTNAME ,
                  'difFile'     : curr_filename ,
                  'backEnd'     : 'userRoot'}
                </call>
                <script>
                 returnString = STAXResult[0][1]
                </script>
                <call function="'checktestString'">
                    { 'returnString'       : returnString ,
                      'expectedString'     : 'Processed 100002 entries' }
                </call>
                <message>
                 'Import Ldif: Many Threads: Start DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
                </message>
                <call function="'StartDsWithScript'">
                { 'location'  : STAF_REMOTE_HOSTNAME }
                </call>
                <!--- Check that DS started -->
                <call function="'isAlive'">
                  { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 5000 }
                </call>
                <message>
                 'Import Ldif: Many Threads: Search for certain entries that were imported'
                </message>
                <call function="'checkImport'">
                { 'expectedEntries' : ['uid=user.1,ou=People,dc=com' ,
                                       'uid=user.10000,ou=People,dc=com' ,
                                       'uid=user.20000,ou=People,dc=com' ,
                                       'uid=user.30000,ou=People,dc=com' ,
                                       'uid=user.40000,ou=People,dc=com' ,
                                       'uid=user.50000,ou=People,dc=com' ,
                                       'uid=user.60000,ou=People,dc=com' ,
                                       'uid=user.70000,ou=People,dc=com' ,
                                       'uid=user.80000,ou=People,dc=com' ,
                                       'uid=user.90000,ou=People,dc=com' ,
                                       'uid=user.99999,ou=People,dc=com'] ,
                  'startDS'         : 'no'
                }
                </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Low Index Entry Limit
  #@TestName            ImportLDIF: Low Index Entry Limit
  #@TestID              importldif_properties_003
  #@TestPurpose         Verify import LDIF with Low Index Entry Limit
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_properties_003" scope="local">
    <testcase name="getTestCaseName('Low Index Entry Limit')">
      <sequence>
        <try>
          <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
                 'Import Ldif: Low Index Entry Limit: Preamble - Change import thread count'
                </message>
                <call function="'dsconfig'">
                  { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                    'dsInstanceDn'         : DIRECTORY_INSTANCE_DN ,
                    'dsInstancePswd'       : DIRECTORY_INSTANCE_PSWD ,
                    'subcommand'           : 'set-backend-prop' ,
                    'objectType'           : 'backend-name' ,
                    'objectName'           : 'userRoot',
                    'optionsString'        : '--set index-entry-limit:4' ,
                    'expectedRC'           : 0 }
                  </call>
                <message>
                 'Import Ldif: Low Index Entry Limit: Preamble - Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
                </message>
                <call function="'StopDsWithScript'">
                { 'location'    : STAF_REMOTE_HOSTNAME,
                  'dsHost'      : DIRECTORY_INSTANCE_HOST,
                  'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
                  'dsBindDN'    : DIRECTORY_INSTANCE_DN,
                  'dsBindPwd'   : DIRECTORY_INSTANCE_PSWD }
                </call>
                <script>
                    numberOfEntries = 100000
                    totalEntries    = numberOfEntries + 2
                    bin_attr_filename = '%s_entries.ldif' % numberOfEntries
                    import os.path
                    curr_filename=remote.temp + "/" + bin_attr_filename
                    curr_file_exists='0'
                    if os.path.exists(curr_filename):
                      curr_file_exists='1'
                </script>
                <message>
                      'Import Ldif: Low Index Entry Limit: Looking for file, %s. File exists? (0=false, 1=true) %s' % (curr_filename, curr_file_exists)
                </message>
                <if expr="curr_file_exists=='0'">
                  <sequence>
                    <message>
                    'Import Ldif: Low Index Entry Limit: Preamble - Make an make-ldif template file'
                    </message>
                    <call function="'MakeAMakeLdifTemplate'">
                    { 'numEntries'         : numberOfEntries ,
                      'templateFile'       : '%s/import_Entries_100k.template' % (remote.temp) ,
                      'extraLine'          : 'jpegPhoto:: &lt;random:base64:38000&gt;'}
                    </call>
                    <message>
                      'Import Ldif: Low Index Entry Limit: Preamble - Make the ldif file'
                    </message>
                    <call function="'MakeLdifWithScript'">
                    { 'templateFile'   : '%s/import_Entries_100k.template' % (remote.temp)  ,
                      'ldifFile'       : curr_filename  }
                    </call>
                  </sequence>
                </if>
                <message>
                   'Import Ldif: Low Index Entry Limit: Import large ldif file'
                </message>
                <call function="'ImportLdifWithScript'">
                { 'location'    : STAF_REMOTE_HOSTNAME ,
                  'ldifFile'    : curr_filename ,
                  'backEnd'     : 'userRoot'}
                </call>
                <script>
                 returnString = STAXResult[0][1]
                </script>
                <call function="'checktestString'">
                    { 'returnString'       : returnString ,
                      'expectedString'     : 'Processed 100002 entries' }
                </call>
                <message>
                 'Import Ldif: Low Index Entry Limit: Start DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
                </message>
                <call function="'StartDsWithScript'">
                { 'location'  : STAF_REMOTE_HOSTNAME }
                </call>
                <!--- Check that DS started -->
                <call function="'isAlive'">
                  { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 5000 }
                </call>
                <message>
                 'Import Ldif: Low Index Entry Limit: Search for certain entries that were imported'
                </message>
                <call function="'checkImport'">
                { 'expectedEntries' : ['uid=user.1,ou=People,dc=com' ,
                                       'uid=user.10000,ou=People,dc=com' ,
                                       'uid=user.20000,ou=People,dc=com' ,
                                       'uid=user.30000,ou=People,dc=com' ,
                                       'uid=user.40000,ou=People,dc=com' ,
                                       'uid=user.50000,ou=People,dc=com' ,
                                       'uid=user.60000,ou=People,dc=com' ,
                                       'uid=user.70000,ou=People,dc=com' ,
                                       'uid=user.80000,ou=People,dc=com' ,
                                       'uid=user.90000,ou=People,dc=com' ,
                                       'uid=user.99999,ou=People,dc=com'] ,
                  'startDS'         : 'no'
                }
                </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/tasks/importldif_tasks.xml
New file
@@ -0,0 +1,137 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <defaultcall function="main_importldif_tasks"/>
  <function name="main_importldif_tasks" scope="local">
    <sequence>
      <block name="'main_importldif_tasks'">
        <try>
          <sequence>
            <script>
              CurrentTestPath['group']='importldif'
              CurrentTestPath['suite']='tasks'
              __group=CurrentTestPath['group']
              __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
            </script>
            <!--- Test Suite information
            #@TestSuiteName       Import LDIF Binary Attributes
            #@TestSuitePurpose    Verify import of binary attributes in ldif file
            #@TestSuiteID         Suite
            #@TestSuiteGroup      Basic
            #@TestGroup           Basic
            #@TestScript          importldif_bin_attr.xml
            #@TestHTMLLink        http://www.forgerock.org/
            -->
            <call function="'testSuite_Preamble'"/>
            <try>
              <sequence>
                <call function="'common_setup'">
                  {
                    'quickStart'    : False ,
                    'startServer'   : False ,
                    'loadData'      : True ,
                    'ldifFile'      : '%s/importldif/importldif_start.ldif' % remote.data ,
                    'stopServer'    : False
                  }
                </call>
                <!-- List of Import of Test Functions -->
                <script>
                  importList=[]
                  importList.append('tasks/importldif_tasks_tests')
                </script>
                <!-- Import the files for this test suite -->
                <iterate var="__import" in="importList">
                  <import machine="STAF_LOCAL_HOSTNAME"
                    file="'%s/%s.xml' % (__groupdir,__import)"/>
                </iterate>
                <!-- Specific to basic import tests -->
                <!-- List of Test Cases -->
                <script>
                  testsList=[]
                  testsList.append('importldif_tasks_001')
                  #testsList.append('importldif_tasks_002')
                </script>
                <!-- Execute the Tests -->
                <iterate var="__test" in="testsList">
                  <sequence>
                    <call function="'%s' % (__test)" />
                  </sequence>
                </iterate>
              </sequence>
            <catch exception="'STAFException.TestSuite.SetupException'">
              <sequence>
                <message log="1" level="'fatal'">
                  'Setup of test suite failed.'
                </message>
                <rethrow/>
              </sequence>
            </catch>
            <finally>
              <message>'Test Cases Completed.'</message>
            </finally>
            </try>
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Test Suite Cleanup.'</message>
              <try>
                <call function="'common_cleanup'" >
                  { 'deleteSuffix' : False }
                </call>
              <catch exception="'STAFException'">
                <sequence>
                  <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                </sequence>
              </catch>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/importldif/tasks/importldif_tasks_tests.xml
New file
@@ -0,0 +1,361 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2012 ForgeRock AS.
 ! -->
<stax>
  <!-- Definition of Test Cases -->
  <!--- Test Cases : ImportLDIF: Tasks -->
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Tasks
  #@TestName            ImportLDIF: Tasks
  #@TestID              importldif_tasks_001
  #@TestPurpose         Verify import LDIF with Tasks
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_tasks_001" scope="local">
    <testcase name="getTestCaseName('Tasks')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <script>
                numberOfEntries = 100000
                totalEntries    = numberOfEntries + 2
                bin_attr_filename = '%s_entries.ldif' % numberOfEntries
                import os.path
                curr_filename=remote.temp + "/" + bin_attr_filename
                curr_file_exists='0'
                if os.path.exists(curr_filename):
                  curr_file_exists='1'
            </script>
            <message>
                  'Import Ldif Tasks: Binary Attribute: Looking for file, %s. File exists? (0=false, 1=true) %s' % (curr_filename, curr_file_exists)
            </message>
            <if expr="curr_file_exists=='0'">
              <sequence>
                <message>
                'Import Ldif Tasks: Binary Attribute: Preamble - Make an make-ldif template file'
                </message>
                <call function="'MakeAMakeLdifTemplate'">
                { 'numEntries'         : numberOfEntries ,
                  'templateFile'       : '%s/import_Entries_100k.template' % (remote.temp) ,
                  'extraLine'          : 'jpegPhoto:: &lt;random:base64:38000&gt;'}
                </call>
                <message>
                  'Import Ldif Tasks: Binary Attribute: Preamble - Make the ldif file'
                </message>
                <call function="'MakeLdifWithScript'">
                { 'templateFile'   : '%s/import_Entries_100k.template' % (remote.temp)  ,
                  'ldifFile'       : curr_filename  }
                </call>
              </sequence>
            </if>
            <message>
               'Import Ldif Tasks: Binary Attribute: Import large ldif file'
            </message>
            <call function="'ImportLdifWithScript'">
            { 'dsInstanceHost'              : DIRECTORY_INSTANCE_HOST,
              'dsInstanceAdminPort'         : DIRECTORY_INSTANCE_ADMIN_PORT,
              'dsInstanceDn'                : DIRECTORY_INSTANCE_DN,
              'dsInstancePswd'              : DIRECTORY_INSTANCE_PSWD,
              'ldifFile'                    : curr_filename ,
              'numLdapCheckTries'           : 1000,
              'sleepBetweenLdapCheckTries'  : 300000
            }
            </call>
            <call function="'checktestRC'">
              { 'returncode' : RC ,
                'result'     : STAXResult
              }
            </call>
            <call function="'setKnownIssue'">
                  { 'issueId' : '2262' }
            </call>
            <message>
             'Import Ldif Tasks: Binary Attribute: Search for certain entries that were imported'
            </message>
            <call function="'checkImport'">
            { 'expectedEntries' : ['uid=user.1,ou=People,dc=com' ,
                                   'uid=user.10000,ou=People,dc=com' ,
                                   'uid=user.20000,ou=People,dc=com' ,
                                   'uid=user.30000,ou=People,dc=com' ,
                                   'uid=user.40000,ou=People,dc=com' ,
                                   'uid=user.50000,ou=People,dc=com' ,
                                   'uid=user.60000,ou=People,dc=com' ,
                                   'uid=user.70000,ou=People,dc=com' ,
                                   'uid=user.80000,ou=People,dc=com' ,
                                   'uid=user.90000,ou=People,dc=com' ,
                                   'uid=user.99999,ou=People,dc=com'] ,
              'startDS'         : 'no'
            }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
  <!--- Test Case information
  #@TestMarker          ImportLDIF: Tasks
  #@TestName            ImportLDIF: Tasks
  #@TestID              importldif_tasks_001
  #@TestPurpose         Verify import LDIF with Tasks
  #@TestPreamble        Common Setup
  #@TestStep            Make template for makeldif.
  #@TestStep            Create ldif file for import using makeldif.
  #@TestStep            Import the LDIF file.
  #@TestStep            Start the Directory Server.
  #@TestStep            Verify import LDIF operations.
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="importldif_tasks_002" scope="local">
    <testcase name="getTestCaseName('Tasks Load')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Import Ldif Tasks: Binary Attribute With Load: Preamble - Make an make-ldif template file'
            </message>
            <script>
                numberOfEntries='100'
            </script>
            <call function="'MakeAMakeLdifTemplate'">
              { 'numEntries'         : numberOfEntries ,
                'templateFile'       : '%s/import_Entries_100.template' % (remote.temp) }
            </call>
            <message>
               'Import Ldif Tasks: Binary Attribute With Load: Preamble - Make the ldif file'
            </message>
            <call function="'MakeLdifWithScript'">
              { 'templateFile'   : '%s/import_Entries_100.template' % (remote.temp)  ,
                'ldifFile'       : '%s/import_Entries_100.ldif' % (remote.temp)  }
            </call>
            <message>
               'Import Ldif Tasks: Binary Attribute With Load: Import large ldif file'
            </message>
            <call function="'ImportLdifWithScript'">
            { 'dsInstanceHost'              : DIRECTORY_INSTANCE_HOST,
              'dsInstanceAdminPort'         : DIRECTORY_INSTANCE_ADMIN_PORT,
              'dsInstanceDn'                : DIRECTORY_INSTANCE_DN,
              'dsInstancePswd'              : DIRECTORY_INSTANCE_PSWD,
              'ldifFile'                    : '%s/import_Entries_100.ldif' % remote.temp
            }
            </call>
            <call function="'checktestRC'">
            { 'returncode' : RC ,
              'result'     : STAXResult
            }
            </call>
           <script>
                import os.path
                curr_filename=remote.temp + "/" + bin_attr_filename
                curr_file_exists='0'
                if os.path.exists(curr_filename):
                  curr_file_exists='1'
                numberOfEntries='100000'
            </script>
            <message>
                  'Import Ldif Tasks: Binary Attribute: Looking for file, %s. File exists? (0=false, 1=true) %s' % (curr_filename, curr_file_exists)
            </message>
            <if expr="curr_file_exists=='0'">
              <sequence>
                <message>
                'Import Ldif Tasks: Binary Attribute: Preamble - Make an make-ldif template file'
                </message>
                <call function="'MakeAMakeLdifTemplate'">
                { 'numEntries'         : numberOfEntries ,
                  'templateFile'       : '%s/import_Entries_100k.template' % (remote.temp) ,
                  'extraLine'          : 'jpegPhoto:: &lt;random:base64:38000&gt;'}
                </call>
                <message>
                  'Import Ldif Tasks: Binary Attribute: Preamble - Make the ldif file'
                </message>
                <call function="'MakeLdifWithScript'">
                { 'templateFile'   : '%s/import_Entries_100k.template' % (remote.temp)  ,
                  'ldifFile'       : curr_filename  }
                </call>
              </sequence>
            </if>
            <script>
              clientList = ['dummyClient1', 'dummyClient2', 'dummyClient3', 'dummyClient4',
                            'dummyClient5', 'dummyClient6', 'dummyClient7', 'dummyClient8',
                            'dummyClient9', 'dummyClient10', 'dummyClient11', 'dummyClient12',
                            'dummyClient13', 'dummyClient14', 'dummyClient15', 'dummyClient16']
            </script>
            <parallel>
              <sequence>
                <message>
                 'Import Ldif Tasks: Binary Attribute With Load: Import Large Ldif File - Sleep 2 s to ensure modify load starts'
                </message>
                <call function="'Sleep'">
                { 'sleepForMilliSeconds' : 2000 }
                </call>
                <message>
                 'Import Ldif Tasks: Binary Attribute With Load: Import Large Ldif File - Add import task'
                </message>
                <call function="'ImportLdifWithScript'">
                { 'dsInstanceHost'              : DIRECTORY_INSTANCE_HOST,
                  'dsInstanceAdminPort'         : DIRECTORY_INSTANCE_ADMIN_PORT,
                  'dsInstanceDn'                : DIRECTORY_INSTANCE_DN,
                  'dsInstancePswd'              : DIRECTORY_INSTANCE_PSWD,
                  'ldifFile'                    : curr_filename ,
                  'numLdapCheckTries'           : 1000,
                  'sleepBetweenLdapCheckTries'  : 300000
                }
                </call>
                <call function="'checktestRC'">
                { 'returncode' : RC ,
                  'result'     : STAXResult
                }
                </call>
                <iterate var="mlClient" in="clientList" indexvar="index">
                  <terminate block="'main.import_ldif.tasks-bin-attr-with-load.ModifyLoad_%s' % mlClient"/>
                </iterate>
              </sequence>
              <paralleliterate var="client" in="clientList">
                <sequence>
                  <block name="'ModifyLoad_%s' % client">
                    <loop>
                      <sequence>
                        <call function="'loadOfModifies'">
                        { 'dsInstanceHost'         : DIRECTORY_INSTANCE_HOST ,
                          'dsInstancePort'         : DIRECTORY_INSTANCE_PORT ,
                          'dsInstanceDn'           : DIRECTORY_INSTANCE_DN ,
                          'dsInstancePswd'         : DIRECTORY_INSTANCE_PSWD ,
                          'partialDNToModify'      : 'ou=People,dc=com' ,
                          'attributeName'          : 'description' ,
                          'newAttributeValue'      : 'Modify load forever' ,
                          'changetype'             : 'replace',
                          'numEntries'             : '100' ,
                          'clientID'               : client }
                        </call>
                        <if expr="STAXCode == 32" >
                          <break/>
                        </if>
                      </sequence>
                    </loop>
                  </block>
                </sequence>
              </paralleliterate>
            </parallel>
            <message>
             'Import Ldif Tasks: Binary Attribute With Load: Search for certain entries that were imported'
            </message>
            <call function="'checkImport'">
            { 'expectedEntries' : ['uid=user.1,ou=People,dc=com' ,
                                   'uid=user.10000,ou=People,dc=com' ,
                                   'uid=user.20000,ou=People,dc=com' ,
                                   'uid=user.30000,ou=People,dc=com' ,
                                   'uid=user.40000,ou=People,dc=com' ,
                                   'uid=user.50000,ou=People,dc=com' ,
                                   'uid=user.60000,ou=People,dc=com' ,
                                   'uid=user.70000,ou=People,dc=com' ,
                                   'uid=user.80000,ou=People,dc=com' ,
                                   'uid=user.90000,ou=People,dc=com' ,
                                   'uid=user.99999,ou=People,dc=com'] ,
              'startDS'         : 'no'
            }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/operations/basic/operations_basic.xml
New file
@@ -0,0 +1,138 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2011 ForgeRock AS.
 ! -->
<stax>
  <defaultcall function="main_operations_basic"/>
  <function name="main_operations_basic" scope="local">
    <sequence>
      <block name="'main_operations_basic'">
        <try>
          <sequence>
            <script>
              CurrentTestPath['group']='operations'
              CurrentTestPath['suite']='basic'
              __group=CurrentTestPath['group']
              __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
            </script>
            <!--- Test Suite information
            #@TestSuiteName       Basic operations suite
            #@TestSuitePurpose    Verify basic operations
            #@TestSuiteID         Suite
            #@TestSuiteGroup      Basic
            #@TestGroup           Basic
            #@TestScript          operations.xml
            #@TestHTMLLink        http://www.forgerock.org/
            -->
            <call function="'testSuite_Preamble'"/>
            <try>
              <sequence>
                <call function="'common_setup'">
                  {
                    'quickStart'    : False ,
                    'startServer'   : False ,
                    'loadData'      : True ,
                    'ldifFile'      : '%s/operations/ldapauthusers.ldif' % remote.data ,
                    'generateLDIF'  : True ,
                    'ldifTemplate'  : '%s/operations/ldapauthusers.template' % remote.data ,
                    'stopServer'    : False
                  }
                </call>
                <!-- List of Import of Test Functions -->
                <script>
                  importList=[]
                  importList.append('basic/operations_basic_tests')
                </script>
                <!-- Import the files for this test suite -->
                <iterate var="__import" in="importList">
                  <import machine="STAF_LOCAL_HOSTNAME"
                    file="'%s/%s.xml' % (__groupdir,__import)"/>
                </iterate>
                <!-- Specific to basic operations tests -->
                <!-- List of Test Cases -->
                <script>
                  testsList=[]
                  testsList.append('basic_operations_001')
                  testsList.append('basic_operations_002')
                  testsList.append('basic_operations_003')
                </script>
                <!-- Execute the Tests -->
                <iterate var="__test" in="testsList">
                  <sequence>
                    <call function="'%s' % (__test)" />
                  </sequence>
                </iterate>
              </sequence>
            <catch exception="'STAFException.TestSuite.SetupException'">
              <sequence>
                <message log="1" level="'fatal'">
                  'Setup of test suite failed.'
                </message>
                <rethrow/>
              </sequence>
            </catch>
            <finally>
              <message>'Test Cases Completed.'</message>
            </finally>
            </try>
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Schema Cleanup.'</message>
              <try>
                <call function="'common_cleanup'" />
              <catch exception="'STAFException'">
                <sequence>
                  <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                </sequence>
              </catch>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/operations/basic/operations_basic_tests.xml
New file
@@ -0,0 +1,200 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2011 ForgeRock AS
 ! -->
<stax>
  <!-- Definition of Test Cases -->
  <!--- Test Cases : Basic : Operations -->
  <!--- Test Case information
  #@TestMarker          Basic: operations
  #@TestName            Basic: operations
  #@TestID              basic_operations_001
  #@TestPurpose         Verify basic LDAP authentication operations
  #@TestPreamble        Common Setup
  #@TestStep            Run LDAP authentication operations
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="basic_operations_001" scope="local">
    <testcase name="getTestCaseName('authrate')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Test Name = %s' % STAXCurrentTestcase
            </message>
            <script>
              BINDUSERS='%s/operations/binduser.ref' % remote.data
            </script>
            <call function="'testStep'">
              { 'stepMessage' : 'Authrate.' }
            </call>
            <call function="'authRate'">
              { 'dsInstanceHost' : server.host,
                'dsInstancePort' : server.port,
                'dsInstanceDn'   : '"%s"',
                'dsInstancePswd' : server.password,
                'extraParams'    : '-g "rand(%s)" -c 10 -m 2000 -M 100' % BINDUSERS
              }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
  <!--- Test Case information
  #@TestMarker          Basic: operations
  #@TestName            Basic: operations
  #@TestID              basic_operations_002
  #@TestPurpose         Verify basic LDAP search operations
  #@TestPreamble        Common Setup
  #@TestStep            Run LDAP search operations
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="basic_operations_002" scope="local">
    <testcase name="getTestCaseName('search')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Test Name = %s' % STAXCurrentTestcase
            </message>
            <script>
              SEARCHUSERS='%s/operations/binduser.ref' % remote.data
            </script>
            <call function="'testStep'">
              { 'stepMessage' : 'SearchRate.' }
            </call>
            <call function="'searchRate'">
              { 'dsInstanceHost' : server.host,
                'dsInstancePort' : server.port,
                'dsInstanceDn'   : server.dn,
                'dsInstancePswd' : server.password,
                'dsBaseDN'       : '"%s"',
                'extraParams'    : '-g "rand(%s)" -m 2000 -M 100 "objectclass=*"' % SEARCHUSERS
              }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
  <!--- Test Case information
  #@TestMarker          Basic: operations
  #@TestName            Basic: operations
  #@TestID              basic_operations_003
  #@TestPurpose         Verify basic LDAP modify operations
  #@TestPreamble        Common Setup
  #@TestStep            Run LDAP modify operations
  #@TestPostamble       Common Cleanup
  #@TestResult          Test is successful if the result code is 0
  -->
  <function name="basic_operations_003" scope="local">
    <testcase name="getTestCaseName('modrate')">
      <sequence>
        <try>
          <sequence>
            <call function="'testCase_Preamble'"/>
            <message>
               'Test Name = %s' % STAXCurrentTestcase
            </message>
            <script>
              MODUSERS='%s/operations/binduser.ref' % remote.data
            </script>
            <call function="'testStep'">
              { 'stepMessage' : 'ModRate.' }
            </call>
            <call function="'modRate'">
              { 'dsInstanceHost' : server.host,
                'dsInstancePort' : server.port,
                'dsInstanceDn'   : server.dn,
                'dsInstancePswd' : server.password,
                'dsBaseDN'       : '"%s"',
                'extraParams'    : '-g "rand(%s)" -g "rand(10,20)" -m 2000 -M 100' % MODUSERS,
                'attribute'      : 'description' ,
                'formatString'   : '"%s"'
              }
            </call>
          </sequence>
          <catch exception="'STAXException'" typevar="eType" var="eInfo">
            <message log="1" level="'fatal'">
              '%s: Test failed. eInfo(%s)' % (eType,eInfo)
            </message>
          </catch>
          <finally>
            <sequence>
              <call function="'testCase_Postamble'"/>
            </sequence>
          </finally>
        </try>
      </sequence>
    </testcase>
  </function>
</stax>
opends/tests/staf-tests/stress-tests/testcases/operations/operations.xml
New file
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
 ! or http://forgerock.org/license/CDDLv1.0.html.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/CDDLv1_0.txt.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2011 ForgeRock AS.
 ! -->
<stax>
  <defaultcall function="main_operations" />
  <function name="main_operations">
    <function-list-args>
      <function-required-arg name="STAXParentID"/>
    </function-list-args>
    <sequence>
      <try>
        <block name="'operations'">
          <sequence>
            <!--- Load the job environment for the test group execution -->
            <import machine="STAF_LOCAL_HOSTNAME"
                    file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
            <call function="'loadJobEnvironment'">
                 { 'parent' : STAXParentID }
            </call>
            <script>
              CurrentTestPath['group']='operations'
              _group=CurrentTestPath['group']
            </script>
            <call function="'testGroup_Preamble'" />
            <script>
              suiteList = []
              suiteList.append('basic')
            </script>
            <!-- Run the test suites -->
            <iterate  var="_suite" in="suiteList">
              <sequence>
                <try>
                  <sequence>
                    <import machine="STAF_LOCAL_HOSTNAME"
                      file="'%s/testcases/%s/%s/%s_%s.xml' % (TESTS_DIR,_group,_suite,_group,_suite)"/>
                    <call function="'main_%s_%s' % (_group,_suite)" />
                  </sequence>
                <catch exception="'STAFException.TestSuite.SetupException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message>
                  </sequence>
                </catch>
                <catch exception="'STAFException.TestSuite.MainException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message>
                  </sequence>
                </catch>
                <catch exception="'STAFException.TestSuite.CleanupException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message>
                  </sequence>
                </catch>
                </try>
              </sequence>
            </iterate>
          </sequence>
        </block>
        <catch exception="'STAXException.TestGroupException'">
          <sequence>
            <message log="1" level="'fatal'">'Execution of Test Group Failed'</message>
          </sequence>
        </catch>
        <finally>
          <!-- Test Group postamble -->
          <call function="'testGroup_Postamble'"/>
        </finally>
      </try>
    </sequence>
  </function>
</stax>