5065N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
5065N/A ! The contents of this file are subject to the terms of the 5065N/A ! Common Development and Distribution License, Version 1.0 only 5065N/A ! (the "License"). You may not use this file except in compliance 5065N/A ! You can obtain a copy of the license at 5065N/A ! See the License for the specific language governing permissions 5065N/A ! and limitations under the License. 5065N/A ! When distributing Covered Code, include this CDDL HEADER in each 5065N/A ! file and include the License file at 5065N/A ! add the following below this CDDL HEADER, with the fields enclosed 5065N/A ! by brackets "[]" replaced with your own identifying information: 5065N/A ! Portions Copyright [yyyy] [name of copyright owner] 5065N/A ! Copyright 2008-2010 Sun Microsystems, Inc. 5065N/A ! Portions Copyright 2013 ForgeRock AS. 5065N/A <
defaultcall function="import_ldif_many_thrds"/>
5065N/A <
function name="import_ldif_many_thrds">
5065N/A <
block name="'many-thrds'">
5065N/A CurrentTestPath['group']='import_ldif'
5065N/A CurrentTestPath['suite']=STAXCurrentBlock
5065N/A <
call function="'testSuite_Preamble'"/>
5065N/A <
import machine="STAF_LOCAL_HOSTNAME" 5065N/A <
call function="'import_ldif_setup'" />
5065N/A <
testcase name="getTestCaseName('Preamble')">
5065N/A <
call function="'testCase_Preamble'"/>
5065N/A [ "-server", "-Xms2048m" ])
5065N/A <
message>'RC %s' % rc</
message>
5065N/A <
call function="'dsJavaPropertiesWithScript'">
5065N/A { 'location' : STAF_REMOTE_HOSTNAME }
5065N/A 'Import Ldif: Many Threads: Preamble - Change import thread count'
5065N/A <
call function="'dsconfig'">
5065N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5065N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5065N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5065N/A 'subcommand' : 'set-backend-prop' ,
5065N/A 'objectType' : 'backend-name' ,
5065N/A 'optionsString' : '--set import-thread-count:2048' ,
5065N/A 'Import Ldif: Many Threads: Preamble - Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
5065N/A <
call function="'StopDsWithScript'">
5065N/A { 'location' : STAF_REMOTE_HOSTNAME,
5065N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
5065N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5065N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN,
5065N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
5065N/A 'Import Ldif: Many Threads: Looking for file, %s. File exists? (0=false, 1=true) %s' % (curr_filename, curr_file_exists)
5065N/A <
if expr="curr_file_exists=='0'">
5065N/A 'Import Ldif: Many Threads: Preamble - Make an make-ldif template file'
5065N/A <
call function="'MakeAMakeLdifTemplate'">
5065N/A { 'numEntries' : numberOfEntries ,
5065N/A 'extraLine' : 'jpegPhoto:: <random:base64:38000>'}
5065N/A 'Import Ldif: Many Threads: Preamble - Make the ldif file'
5065N/A <
call function="'MakeLdifWithScript'">
5065N/A 'ldifFile' : curr_filename }
5065N/A <
call function="'testCase_Postamble'"/>
5065N/A <
testcase name="getTestCaseName('Import Large Ldif File')">
5065N/A <
call function="'testCase_Preamble'"/>
5065N/A 'Import Ldif: Many Threads: Import large ldif file'
5065N/A <
call function="'ImportLdifWithScript'">
5065N/A { 'location' : STAF_REMOTE_HOSTNAME ,
5065N/A 'difFile' : curr_filename ,
5065N/A returnString = STAXResult[0][1]
5065N/A <
call function="'checktestString'">
5065N/A { 'returnString' : returnString ,
5065N/A 'expectedString' : 'Processed 100002 entries' }
5065N/A <
call function="'testCase_Postamble'"/>
5065N/A <
testcase name="getTestCaseName('Start Directory After Import')">
5065N/A <
call function="'testCase_Preamble'"/>
5065N/A 'Import Ldif: Many Threads: Start DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
5065N/A <
call function="'StartDsWithScript'">
5065N/A { 'location' : STAF_REMOTE_HOSTNAME }
5065N/A <!--- Check that DS started --> 5065N/A <
call function="'isAlive'">
5065N/A 'noOfMilliSeconds' : 5000 }
5065N/A <
call function="'testCase_Postamble'"/>
5065N/A <
testcase name="getTestCaseName('Search For Imported Entries')">
5065N/A <
call function="'testCase_Preamble'"/>
5065N/A 'Import Ldif: Many Threads: Search for certain entries that were imported'
5065N/A <
call function="'checkImport'">
5065N/A { 'expectedEntries' : ['uid=user.1,ou=People,dc=com' ,
5065N/A 'uid=user.10000,ou=People,dc=com' ,
5065N/A 'uid=user.20000,ou=People,dc=com' ,
5065N/A 'uid=user.30000,ou=People,dc=com' ,
5065N/A 'uid=user.40000,ou=People,dc=com' ,
5065N/A 'uid=user.50000,ou=People,dc=com' ,
5065N/A 'uid=user.60000,ou=People,dc=com' ,
5065N/A 'uid=user.70000,ou=People,dc=com' ,
5065N/A 'uid=user.80000,ou=People,dc=com' ,
5065N/A 'uid=user.90000,ou=People,dc=com' ,
5065N/A 'uid=user.99999,ou=People,dc=com'] ,
5065N/A <
call function="'testCase_Postamble'"/>
5065N/A <
import machine="STAF_LOCAL_HOSTNAME" <
call function="'import_ldif_cleanup'" />
<
call function="'testSuite_Postamble'"/>