446N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
446N/A ! The contents of this file are subject to the terms of the 446N/A ! Common Development and Distribution License, Version 1.0 only 446N/A ! (the "License"). You may not use this file except in compliance 446N/A ! You can obtain a copy of the license at 446N/A ! See the License for the specific language governing permissions 446N/A ! and limitations under the License. 446N/A ! When distributing Covered Code, include this CDDL HEADER in each 446N/A ! file and include the License file at 446N/A ! add the following below this CDDL HEADER, with the fields enclosed 873N/A ! by brackets "[]" replaced with your own identifying information: 446N/A ! Portions Copyright [yyyy] [name of copyright owner] 5073N/A ! Copyright 2009-2010 Sun Microsystems, Inc. 4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Import Tasks: LDIF Default 4744N/A #@TestPurpose Verify an import task of a LDIF file using the default backend. 4744N/A <
function name="backends_import_tasks_001" scope="local">
4744N/A <
testcase name="getTestCaseName('LDIF Default')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4744N/A 'uid=rhunt, ou=People, dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import TasksTests 4744N/A #@TestName Backend: Import Tasks: LDIF Non Default 4744N/A #@TestPurpose Verify an import task of a LDIF file using a differrent backend to the default. 4744N/A <
function name="backends_import_tasks_002" scope="local">
4744N/A <
testcase name="getTestCaseName('LDIF Non Default')">
4744N/A <
call function="'testCase_Preamble'"/>
4744N/A createBackendOptions=' '.join(options)
4744N/A <
call function="'dsconfig'">
4744N/A { 'subcommand' : 'create-backend',
4744N/A 'optionsString' : createBackendOptions
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=non-default,dc=com',
4744N/A 'uid=dmiller, ou=People, dc=non-default,dc=com',
4744N/A 'uid=rhunt, ou=People, dc=non-default,dc=com'] ,
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Include Branch 4744N/A #@TestID Fractional Include Branch 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying a branch that should be included in the import. 4744N/A <
function name="backends_import_tasks_003" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Include Branch')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'includeBranches' : ['dc=com'],
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4744N/A 'uid=rhunt, ou=People, dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Include Branches 4744N/A #@TestID Fractional Include Branches 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying multiple branches that should be included in the import. 4744N/A <
function name="backends_import_tasks_004" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Include Branches')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'includeBranches' : ['dc=com','dc=example,dc=com']
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4744N/A 'uid=rhunt, ou=People, dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Exclude Branch 4744N/A #@TestID Fractional Exclude Branch 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying a branch that should be excluded in the import. 4744N/A <
function name="backends_import_tasks_005" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Exclude Branch')">
4744N/A <
call function="'testCase_Preamble'" />
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'taskID' : STAXCurrentTestcase,
4744N/A 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'],
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4744N/A 'uid=rhunt, ou=People, dc=example,dc=com'],
4744N/A 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
4744N/A 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Exclude Branches 4744N/A #@TestID Fractional Exclude Branches 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying multiple branches that should be excluded in the import. 4744N/A <
function name="backends_import_tasks_006" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Exclude Branches')">
4744N/A <
call function="'testCase_Preamble'" />
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'taskID' : STAXCurrentTestcase,
4744N/A 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com',
4744N/A 'cn=QA Managers,ou=groups,dc=example,dc=com']
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4744N/A 'uid=rhunt, ou=People, dc=example,dc=com'],
4744N/A 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
4744N/A 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com',
4744N/A 'uid=bbaret,cn=QA Managers,ou=groups,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Branches Mix 4744N/A #@TestID Fractional Branches Mix 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying a mix of include and exclude branches. 4744N/A <
function name="backends_import_tasks_007" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Branches Mix')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'includeBranches' : ['dc=com'],
4744N/A 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'],
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4744N/A 'uid=rhunt, ou=People, dc=example,dc=com'],
4744N/A 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
4744N/A 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Include Attribute 4744N/A #@TestID Fractional Include Attribute 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying an attribute that should be included in the import. 4744N/A <
function name="backends_import_tasks_008" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Include Attribute')">
4744N/A <
call function="'testCase_Preamble'" />
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'includeAttributes' : ['dc'],
4744N/A <
call function="'checkImport'">
5168N/A { 'expectedEntries' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Include Attributes 4744N/A #@TestID Fractional Include Attributes 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying multiple attributes that should be included in the import. 4744N/A <
function name="backends_import_tasks_009" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Include Attributes')">
4744N/A <
call function="'testCase_Preamble'" />
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'includeAttributes' : ['dc','cn','ou','sn']
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Exclude Attribute 4744N/A #@TestID Fractional Exclude Attribute 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying an attribute that should be excluded in the import. 4744N/A <
function name="backends_import_tasks_010" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Exclude Attribute')">
4744N/A <
call function="'testCase_Preamble'" />
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'excludeAttributes' : ['userpassword']
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'],
4744N/A 'missingAttributes' : ['userpassword'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Exclude Attributes 4744N/A #@TestID Fractional Exclude Attributes 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying multiple attribute that should be excluded in the import. 4744N/A <
function name="backends_import_tasks_011" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Exclude Attributes')">
4744N/A <
call function="'testCase_Preamble'" />
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'excludeAttributes' : ['userpassword','mail','roomnumber']
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'],
4744N/A 'missingAttributes' : ['userpassword','mail','roomnumber'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Mix 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying a mix of fractional attributes and branches. 4744N/A <
function name="backends_import_tasks_012" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Mix')">
4744N/A <
call function="'testCase_Preamble'" />
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'includeBranches' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'],
4744N/A 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'],
4744N/A 'includeAttributes' : ['dc','cn','ou','sn'],
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4744N/A 'uid=rhunt, ou=People, dc=example,dc=com'],
4744N/A 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
4744N/A 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Filtered Include 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying a search filter control which entries are included in the import. 4744N/A <
function name="backends_import_tasks_013" scope="local">
4744N/A <
testcase name="getTestCaseName('Filtered Include')">
4744N/A <
call function="'testCase_Preamble'" />
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'includeFilters' : ['objectclass=*'],
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Filtered Exclude 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying a search filter control which entries are excluded in the import. 4744N/A <
function name="backends_import_tasks_014" scope="local">
4744N/A <
testcase name="getTestCaseName('Filtered Exclude')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'excludeFilters' : ['objectclass=person'],
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['dc=example,dc=com',
4744N/A 'ou=People,dc=example,dc=com'],
4744N/A 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Filtered Includes 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying multiple search filters control which entries are included in the import. 4744N/A <
function name="backends_import_tasks_015" scope="local">
4744N/A <
testcase name="getTestCaseName('Filtered Includes')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'includeFilters' : ['objectclass=domain*','objectclass=organizationalunit']
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['dc=example,dc=com',
4744N/A 'ou=People,dc=example,dc=com'],
4744N/A 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Filtered Excludes 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying multiple search filters control which entries are excluded in the import. 4744N/A <
function name="backends_import_tasks_016" scope="local">
4744N/A <
testcase name="getTestCaseName('Filtered Excludes')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'excludeFilters' : ['objectclass=person','objectclass=organizationalunit'],
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['dc=example,dc=com'],
4744N/A 'missingEntries' : ['ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Filtered Includes Complex 4744N/A #@TestID Filtered Includes Complex 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying complex search filters control which entries are included in the import. 4744N/A <
function name="backends_import_tasks_017" scope="local">
4744N/A <
testcase name="getTestCaseName('Filtered Includes Complex')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'includeFilters' : ['|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)'],
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Filtered Excludes Complex 4744N/A #@TestID Filtered Excludes Complex 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying complex search filters control which entries are excluded in the import. 4744N/A <
function name="backends_import_tasks_018" scope="local">
4744N/A <
testcase name="getTestCaseName('Filtered Excludes Complex')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'excludeFilters' : ['&(objectclass=person)(ou=Departed)'],
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Fractional Filtered Mix 4744N/A #@TestID Fractional Filtered Mix 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying a mix of fractional and filtered. 4744N/A <
function name="backends_import_tasks_019" scope="local">
4744N/A <
testcase name="getTestCaseName('Fractional Filtered Mix')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'excludeFilters' : ['&(objectclass=person)(ou=Departed)'],
4744N/A 'includeBranches' : ['dc=com'],
4744N/A 'excludeAttributes' : ['userpassword']
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'],
4744N/A 'missingAttributes' : ['userpassword'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Append 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying that the import process should append to the existing database. 4744N/A <
function name="backends_import_tasks_020" scope="local">
4744N/A <
testcase name="getTestCaseName('Append')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
5476N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5476N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5476N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
5476N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5476N/A 'backEnd' : DIRECTORY_INSTANCE_BE
5476N/A <
call function="'ImportLdifWithScript'">
5476N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5476N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5476N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
5476N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A <
call function="'checkImport'">
5476N/A { 'dsBaseDN' : 'dc=example,dc=com',
5476N/A 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com',
4744N/A 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
5476N/A 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] ,
5476N/A 'expectedNoEntries' : '163' ,
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks:Append Replace Existing 4744N/A #@TestID Append Replace Existing 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying that an existing entry should be replaced when appending to an existing database. 4744N/A <
function name="backends_import_tasks_021" scope="local">
4744N/A <
testcase name="getTestCaseName('Append Replace Existing')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
5476N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5476N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5476N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
5476N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5476N/A 'backEnd' : DIRECTORY_INSTANCE_BE
5476N/A <
call function="'ImportLdifWithScript'">
5476N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5476N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5476N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
5476N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5476N/A <
call function="'checkImport'">
5476N/A { 'dsBaseDN' : 'dc=example,dc=com',
5476N/A 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com',
5476N/A 'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
5476N/A 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com'] ,
5476N/A 'expectedNoEntries' : '163' ,
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Compressed 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying the data to import is compressed. 4744N/A <
function name="backends_import_tasks_022" scope="local">
4744N/A <
testcase name="getTestCaseName('Compressed')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Encrypted 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying the data to import is encrypted. 4744N/A <
function name="backends_import_tasks_023" scope="local">
4744N/A <
testcase name="getTestCaseName('Encrypted')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <
call function="'checktestRC'">
4744N/A 'result' : 'Encrypted LDIF export is not implemented',
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Hashed Signed 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying the data to import is hashed/signed. 4744N/A <
function name="backends_import_tasks_024" scope="local">
4744N/A <
testcase name="getTestCaseName('Signed Hash')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <
call function="'checktestRC'">
4744N/A 'result' : 'Signed Hash import is not implemented',
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Rejects File 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is not overwritten. 4744N/A <
function name="backends_import_tasks_025" scope="local">
4744N/A <
testcase name="getTestCaseName('Rejects File')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <!-- Should check there is a rejects file and the contents are correct --> 4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Rejects File Overwrite 4744N/A #@TestID Rejects File Overwrite 4744N/A #@TestPurpose Verify an import task of a LDIF file specifying the a path to a file into which rejected entries may be written if they are not accepted during the import process, when the rejects file is overwritten. 4744N/A <
function name="backends_import_tasks_026" scope="local">
4744N/A <
testcase name="getTestCaseName('Overwrite Rejects File')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=rhunt,ou=People,dc=example,dc=com'],
4744N/A <!-- Should check there is a rejects file and the contents are correct --> 4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Skip Schema Validation Accept 4744N/A #@TestID Skip Schema Validation Accept 4744N/A #@TestPurpose Verify an import task of a LDIF file containing invalided schema is accepted when skip schema validation is specified 4744N/A <
function name="backends_import_tasks_027" scope="local">
4744N/A <
testcase name="getTestCaseName('Skip Schema Validation Accept')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A 'skipSchemaValidation' : 'TRUE'
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=dmiller,ou=People,dc=example,dc=com',
4744N/A 'uid=kwinters,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Skip Schema Validation Reject 4744N/A #@TestID Skip Schema Validation Reject 4744N/A #@TestPurpose Verify an import task of a LDIF file containing invalid schema is rejected when skip schema validation is not specified 4744N/A <
function name="backends_import_tasks_028" scope="local">
4744N/A <
testcase name="getTestCaseName('Skip Schema Validation Reject')">
4744N/A <
call function="'testCase_Preamble'"/>
5073N/A <
call function="'ImportLdifWithScript'">
4744N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5073N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4744N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4744N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
4744N/A <
call function="'checkImport'">
4744N/A { 'expectedEntries' : ['uid=dmiller,ou=People,dc=example,dc=com'],
4744N/A 'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4744N/A 'uid=kwinters,ou=People,dc=example,dc=com'],
4744N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4744N/A <
message log="1" level="'fatal'">
4744N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4744N/A <
call function="'testCase_Postamble'"/>
4744N/A <!--- Test Case information 4744N/A #@TestMarker Backend Import Tasks Tests 4744N/A #@TestName Backend: Import Tasks: Error Codes 4744N/A #@TestPurpose Verify an import task fails with an error code. 4744N/A <!-- Need to know what the error codes are -->