5693N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
5693N/A ! The contents of this file are subject to the terms of the 5693N/A ! Common Development and Distribution License, Version 1.0 only 5693N/A ! (the "License"). You may not use this file except in compliance 5693N/A ! You can obtain a copy of the license at 5693N/A ! See the License for the specific language governing permissions 5693N/A ! and limitations under the License. 5693N/A ! When distributing Covered Code, include this CDDL HEADER in each 5693N/A ! file and include the License file at 5693N/A ! add the following below this CDDL HEADER, with the fields enclosed 5693N/A ! by brackets "[]" replaced with your own identifying information: 5693N/A ! Portions Copyright [yyyy] [name of copyright owner] 5693N/A ! Copyright 2012 ForgeRock AS. 5693N/A <!-- Definition of Test Cases --> 5693N/A <!--- Test Cases : ImportLDIF: Binary Attributes --> 5693N/A <!--- Test Case information 5693N/A #@TestMarker ImportLDIF: Out of Box 5693N/A #@TestName ImportLDIF: Out of Box 5693N/A #@TestID importldif_basic_001 5693N/A #@TestPurpose Verify import LDIF with out of box settings 5693N/A #@TestPreamble Common Setup 5693N/A #@TestStep Make template for makeldif. 5693N/A #@TestStep Create ldif file for import using makeldif. 5693N/A #@TestStep Import the LDIF file. 5693N/A #@TestStep Start the Directory Server. 5693N/A #@TestStep Verify import LDIF operations. 5693N/A #@TestPostamble Common Cleanup 5693N/A #@TestResult Test is successful if the result code is 0 5693N/A <
function name="importldif_basic_001" scope="local">
5693N/A <
testcase name="getTestCaseName('Out of Box')">
5693N/A <
call function="'testCase_Preamble'"/>
5693N/A 'Test Name = %s' % STAXCurrentTestcase
5693N/A <
call function="'testCase_Preamble'"/>
5693N/A 'Import Ldif: Out-Of-Box: Preamble - Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
5693N/A <
call function="'StopDsWithScript'">
5693N/A { 'location' : STAF_REMOTE_HOSTNAME,
5693N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
5693N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5693N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN,
5693N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
5693N/A 'Import Ldif: Out-Of-Box: Preamble - Make an make-ldif template file'
5693N/A <
call function="'MakeAMakeLdifTemplate'">
5693N/A { 'numEntries' : numberOfEntries ,
5693N/A 'Import Ldif: Out-Of-Box: Preamble - Make the ldif file'
5693N/A <
call function="'MakeLdifWithScript'">
5693N/A 'Import Ldif: Out-Of-Box: Import large ldif file'
5693N/A <
call function="'ImportLdifWithScript'">
5693N/A { 'location' : STAF_REMOTE_HOSTNAME ,
5693N/A returnString = STAXResult[0][1]
5693N/A <
call function="'checktestString'">
5693N/A { 'returnString' : returnString ,
5693N/A 'expectedString' : 'skipped 0, rejected 0' }
5693N/A 'Import Ldif: Out-Of-Box: Start DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
5693N/A <
call function="'StartDsWithScript'">
5693N/A { 'location' : STAF_REMOTE_HOSTNAME }
5693N/A <!--- Check that DS started --> 5693N/A <
call function="'isAlive'">
5693N/A 'noOfMilliSeconds' : 5000 }
5693N/A 'Import Ldif: Out-Of-Box: Search for certain entries that were imported'
5693N/A <
call function="'checkImport'">
5693N/A { 'expectedEntries' : ['uid=user.1,ou=People,dc=com' ,
5693N/A 'uid=user.10000,ou=People,dc=com' ,
5693N/A 'uid=user.100000,ou=People,dc=com' ,
5693N/A 'uid=user.1000000,ou=People,dc=com' ,
5693N/A 'uid=user.14000000,ou=People,dc=com' ,
5693N/A 'uid=user.14999999,ou=People,dc=com'] ,
5693N/A <
catch exception="'STAXException'" typevar="eType" var="eInfo">
5693N/A <
message log="1" level="'fatal'">
5693N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5693N/A <
call function="'testCase_Postamble'"/>