2852N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
2852N/A ! The contents of this file are subject to the terms of the 2852N/A ! Common Development and Distribution License, Version 1.0 only 2852N/A ! (the "License"). You may not use this file except in compliance 2852N/A ! You can obtain a copy of the license at 2852N/A ! See the License for the specific language governing permissions 2852N/A ! and limitations under the License. 2852N/A ! When distributing Covered Code, include this CDDL HEADER in each 2852N/A ! file and include the License file at 2852N/A ! add the following below this CDDL HEADER, with the fields enclosed 2852N/A ! by brackets "[]" replaced with your own identifying information: 2852N/A ! Portions Copyright [yyyy] [name of copyright owner] 5073N/A ! Copyright 2009-2010 Sun Microsystems, Inc. 2852N/A <!--- Test Case information 2852N/A #@TestMarker Backend Import Tests 4618N/A #@TestName Backend: Import: LDIF Default 4618N/A #@TestPurpose Verify an import of a LDIF file using the default backend. 4618N/A <
function name="backends_import_001" scope="local">
4618N/A <
testcase name="getTestCaseName('LDIF Default')">
3328N/A <
call function="'testCase_Preamble'"/>
4618N/A <
call function="'ImportLdifWithScript'">
4618N/A 'backEnd' : DIRECTORY_INSTANCE_BE
4618N/A <
call function="'checkImport'">
4618N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4618N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4618N/A 'uid=rhunt, ou=People, dc=example,dc=com'] }
4618N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4618N/A <
message log="1" level="'fatal'">
4618N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4618N/A <
call function="'testCase_Postamble'"/>
5073N/A <!--- Test Case information 5073N/A #@TestMarker Backend Import Tests 5184N/A #@TestName Backend: Import: LDIF Non Default 4618N/A #@TestPurpose Verify an import of a LDIF file using a differrent backend to the default. 4618N/A <
function name="backends_import_002" scope="local">
5184N/A <
testcase name="getTestCaseName('LDIF Non Default')">
4618N/A <
call function="'testCase_Preamble'"/>
4618N/A <
call function="'StartDsWithScript'"/>
4618N/A <!--- Check that DS started --> 4618N/A <
call function="'isAlive'">
4618N/A createBackendOptions=' '.join(options)
4618N/A <
call function="'dsconfig'">
4618N/A { 'subcommand' : 'create-backend',
4618N/A 'optionsString' : createBackendOptions
4618N/A <
call function="'StopDsWithScript'"/>
4618N/A <
call function="'ImportLdifWithScript'">
4618N/A <
call function="'checkImport'">
4618N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=non-default,dc=com',
4618N/A 'uid=dmiller, ou=People, dc=non-default,dc=com',
4618N/A 'uid=rhunt, ou=People, dc=non-default,dc=com'] }
4618N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4680N/A <
message log="1" level="'fatal'">
4618N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4618N/A <
call function="'testCase_Postamble'"/>
4618N/A <!--- Test Case information 4618N/A #@TestMarker Backend Import Tests 4618N/A #@TestName Backend: Import: Fractional Include Branch 4618N/A #@TestID Fractional Include Branch 4618N/A #@TestPurpose Verify an import of a LDIF file specifying a branch that should be included in the import. 4618N/A <
function name="backends_import_003" scope="local">
4618N/A <
testcase name="getTestCaseName('Fractional Include Branch')">
4618N/A <
call function="'testCase_Preamble'"/>
4618N/A <
call function="'ImportLdifWithScript'">
4618N/A 'includeBranches' : ['dc=com'] }
4618N/A <
call function="'checkImport'">
4618N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4618N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4618N/A 'uid=rhunt, ou=People, dc=example,dc=com'] }
4618N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4618N/A <
message log="1" level="'fatal'">
4618N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4618N/A <
call function="'testCase_Postamble'"/>
4618N/A <!--- Test Case information 4618N/A #@TestMarker Backend Import Tests 4618N/A #@TestName Backend: Import: Fractional Include Branch with backend ID 5073N/A #@TestID Fractional Include Branch 5073N/A #@TestPurpose Verify an import of a LDIF file specifying a branch that should be included in the import 4618N/A <
function name="backends_import_004" scope="local">
4618N/A <
testcase name="getTestCaseName('Fractional Include Branch with backend ID')">
4618N/A <
call function="'testCase_Preamble'"/>
4618N/A <
call function="'ImportLdifWithScript'">
4618N/A { 'location' : STAF_REMOTE_HOSTNAME,
4618N/A 'includeBranches' : ['dc=com'],
4618N/A 'backEnd' : DIRECTORY_INSTANCE_BE
4618N/A <
call function="'checkImport'">
4618N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4618N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4618N/A 'uid=rhunt, ou=People, dc=example,dc=com'] }
4618N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4618N/A <
message log="1" level="'fatal'">
4618N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4618N/A <
call function="'testCase_Postamble'"/>
4618N/A <!--- Test Case information 4618N/A #@TestMarker Backend Import Tests 5073N/A #@TestName Backend: Import: Fractional Include Branches 4618N/A #@TestID Fractional Include Branches 5073N/A #@TestPurpose Verify an import of a LDIF file specifying multiple branches that should be included in the import. 6665N/A <
function name="backends_import_005" scope="local">
6665N/A <
testcase name="getTestCaseName('Fractional Include Branches')">
6665N/A <
call function="'testCase_Preamble'"/>
6665N/A <
call function="'ImportLdifWithScript'">
6665N/A { 'location' : STAF_REMOTE_HOSTNAME,
6665N/A 'includeBranches' : ['dc=com','dc=example,dc=com']
6665N/A <
call function="'checkImport'">
6665N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
6665N/A 'uid=dmiller, ou=People, dc=example,dc=com',
6665N/A 'uid=rhunt, ou=People, dc=example,dc=com'] }
6665N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
6665N/A <
message log="1" level="'fatal'">
6665N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
6665N/A <
call function="'testCase_Postamble'"/>
6665N/A <!--- Test Case information 6665N/A #@TestMarker Backend Import Tests 4618N/A #@TestName Backend: Import: Fractional Exclude Branch 4680N/A #@TestID Fractional Exclude Branch 4618N/A #@TestPurpose Verify an import of a LDIF file specifying a branch that should be excluded in the import. 6665N/A <
function name="backends_import_006" scope="local">
6665N/A <
testcase name="getTestCaseName('Fractional Exclude Branch')">
6665N/A <
call function="'testCase_Preamble'"/>
6665N/A <
call function="'ImportLdifWithScript'">
6665N/A { 'location' : STAF_REMOTE_HOSTNAME,
6665N/A 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'],
6665N/A 'backEnd' : DIRECTORY_INSTANCE_BE
6665N/A <
call function="'checkImport'">
6665N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
6665N/A 'uid=dmiller, ou=People, dc=example,dc=com',
6665N/A 'uid=rhunt, ou=People, dc=example,dc=com'] ,
6665N/A 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
6665N/A 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com']
6665N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
6665N/A <
message log="1" level="'fatal'">
6665N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
6665N/A <
call function="'testCase_Postamble'"/>
6665N/A <!--- Test Case information 6665N/A #@TestMarker Backend Import Tests 6665N/A #@TestName Backend: Import: Fractional Exclude Branches 6665N/A #@TestID Fractional Exclude Branches 6665N/A #@TestPurpose Verify an import of a LDIF file specifying multiple branches that should be excluded in the import. 4618N/A <
function name="backends_import_007" scope="local">
4618N/A <
testcase name="getTestCaseName('Fractional Exclude Branches')">
4618N/A <
call function="'testCase_Preamble'"/>
4618N/A <
call function="'ImportLdifWithScript'">
6665N/A { 'location' : STAF_REMOTE_HOSTNAME,
6665N/A 'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com', 'ou=unit1, ou=People, dc=example,dc=com'],
4618N/A 'backEnd' : DIRECTORY_INSTANCE_BE
4618N/A <
call function="'checkImport'">
4618N/A { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
4618N/A 'uid=dmiller, ou=People, dc=example,dc=com',
4618N/A 'uid=rhunt, ou=People, dc=example,dc=com'] ,
4161N/A 'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
4618N/A 'uid=brammage,ou=Departed,ou=People,dc=example,dc=com',
4618N/A 'uid=arammell, ou=unit1, ou=People, dc=example,dc=com']
4618N/A <
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
4618N/A <
message log="1" level="'fatal'">
4618N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
4618N/A <
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Fractional Branches Mix #@TestID Fractional Branches Mix #@TestPurpose Verify an import of a LDIF file specifying a mix of include and exclude branches. <
function name="backends_import_008" scope="local">
<
testcase name="getTestCaseName('Fractional Branches Mix')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'includeBranches' : ['dc=com'],
'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com']
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller, ou=People, dc=example,dc=com',
'uid=rhunt, ou=People, dc=example,dc=com'] ,
'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
'uid=brammage,ou=Departed,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Fractional Include Attribute #@TestID Fractional Include Attribute #@TestPurpose Verify an import of a LDIF file specifying an attribute that should be included in the import. <
function name="backends_import_009" scope="local">
<
testcase name="getTestCaseName('Fractional Include Attribute')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'includeAttributes' : ['dc'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'] }
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Fractional Include Attributes #@TestID Fractional Include Attributes #@TestPurpose Verify an import of a LDIF file specifying multiple attributes that should be included in the import. <
function name="backends_import_010" scope="local">
<
testcase name="getTestCaseName('Fractional Include Attributes')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'includeAttributes' : ['dc','cn','ou','sn'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller, ou=People, dc=example,dc=com',
'uid=rhunt, ou=People, dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Fractional Exclude Attribute #@TestID Fractional Exclude Attribute #@TestPurpose Verify an import of a LDIF file specifying an attribute that should be excluded in the import. <
function name="backends_import_011" scope="local">
<
testcase name="getTestCaseName('Fractional Exclude Attribute')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'excludeAttributes' : ['userpassword'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'],
'missingAttributes' : ['userpassword']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Fractional Exclude Attributes #@TestID Fractional Exclude Attributes #@TestPurpose Verify an import of a LDIF file specifying multiple attribute that should be excluded in the import. <
function name="backends_import_012" scope="local">
<
testcase name="getTestCaseName('Fractional Exclude Attributes')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'excludeAttributes' : ['userpassword','mail','roomnumber'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com'],
'missingAttributes' : ['userpassword']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Fractional Mix #@TestPurpose Verify an import of a LDIF file specifying a mix of fractional attributes and branches. <
function name="backends_import_013" scope="local">
<
testcase name="getTestCaseName('Fractional Mix')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'includeAttributes' : ['dc','cn','ou','sn'],
'includeBranches' : ['dc=com','dc=example,dc=com','ou=People,dc=example,dc=com'],
'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com']
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller, ou=People, dc=example,dc=com',
'uid=rhunt, ou=People, dc=example,dc=com'],
'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
'uid=brammage,ou=Departed,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Filtered Include #@TestID Filtered Include #@TestPurpose Verify an import of a LDIF file specifying a search filter control which entries are included in the import. <
function name="backends_import_014" scope="local">
<
testcase name="getTestCaseName('Filtered Include')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'includeFilters' : ['objectclass=*'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=rhunt,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Filtered Exclude #@TestID Filtered Exclude #@TestPurpose Verify an import of a LDIF file specifying a search filter control which entries are excluded in the import. <
function name="backends_import_015" scope="local">
<
testcase name="getTestCaseName('Filtered Exclude')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'excludeFilters' : ['objectclass=person'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['dc=example,dc=com',
'ou=People,dc=example,dc=com'],
'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=rhunt,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Filtered Includes #@TestID Filtered Includes #@TestPurpose Verify an import of a LDIF file specifying multiple search filters control which entries are included in the import. <
function name="backends_import_016" scope="local">
<
testcase name="getTestCaseName('Filtered Includes')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'includeFilters' : ['objectclass=domain','objectclass=organizationalunit'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['dc=example,dc=com',
'ou=People,dc=example,dc=com'],
'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=rhunt,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Filtered Excludes #@TestID Filtered Excludes #@TestPurpose Verify an import of a LDIF file specifying multiple search filters control which entries are excluded in the import. <
function name="backends_import_017" scope="local">
<
testcase name="getTestCaseName('Filtered Excludes')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'excludeFilters' : ['objectclass=person','objectclass=organizationalunit'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['dc=example,dc=com'],
'missingEntries' : ['ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Filtered Includes Complex #@TestID Filtered Includes Complex #@TestPurpose Verify an import of a LDIF file specifying complex search filters control which entries are included in the import. <
function name="backends_import_018" scope="local">
<
testcase name="getTestCaseName('Filtered Includes Complex')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'includeFilters' : ['|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=rhunt,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Filtered Excludes Complex #@TestID Filtered Excludes Complex #@TestPurpose Verify an import of a LDIF file specifying complex search filters control which entries are excluded in the import. <
function name="backends_import_019" scope="local">
<
testcase name="getTestCaseName('Filtered Excludes Complex')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'excludeFilters' : ['&(objectclass=person)(ou=Departed)'],
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'],
'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Fractional Filtered Mix #@TestID Fractional Filtered Mix #@TestPurpose Verify an import of a LDIF file specifying a mix of fractional and filtered. <
function name="backends_import_020" scope="local">
<
testcase name="getTestCaseName('Fractional Filtered Mix')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'excludeFilters' : ['&(objectclass=person)(ou=Departed)'],
'includeBranches' : ['dc=com'],
'excludeAttributes' : ['userpassword']
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'],
'missingEntries' : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Append #@TestPurpose Verify an import of a LDIF file specifying that the import process should append to the existing database. <
function name="backends_import_021" scope="local">
<
testcase name="getTestCaseName('Append')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com',
'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
'uid=brammage,ou=Departed,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Append Replace Existing #@TestID Append Replace Existing #@TestPurpose Verify an import of a LDIF file specifying that an existing entry should be replaced when appending to an existing database. <
function name="backends_import_022" scope="local">
<
testcase name="getTestCaseName('Append Replace Existing')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'replaceExisting' : 'TRUE',
'backEnd' : DIRECTORY_INSTANCE_BE,
<
call function="'checkImport'">
{ 'expectedEntries' : ['ou=Departed,ou=People,dc=example,dc=com',
'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
'uid=brammage,ou=Departed,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Compressed #@TestPurpose Verify an import of a LDIF file specifying the data to import is compressed. <
function name="backends_import_023" scope="local">
<
testcase name="getTestCaseName('Compressed')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=rhunt,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Encrypted #@TestPurpose Verify an import of a LDIF file specifying the data to import is encrypted. <
function name="backends_import_024" scope="local">
<
testcase name="getTestCaseName('Encrypted')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=rhunt,ou=People,dc=example,dc=com']
<
call function="'checktestRC'">
'result' : 'Encrypted LDIF import is not implemented',
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Hashed Signed #@TestPurpose Verify an import of a LDIF file specifying the data to import is hashed/signed. <
function name="backends_import_025" scope="local">
<
testcase name="getTestCaseName('Hash Signed')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=rhunt,ou=People,dc=example,dc=com']
<
call function="'checktestRC'">
'result' : 'Hash Signed LDIF import is not implemented',
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!-- Test Not Implemented. Feature not avaliable --> <!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Rejects File #@TestPurpose Verify an import 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. <
function name="backends_import_026" scope="local">
<
testcase name="getTestCaseName('Rejects File')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=rhunt,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Rejects File Overwrite #@TestID Rejects File Overwrite #@TestPurpose Verify an import 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. <
function name="backends_import_027" scope="local">
<
testcase name="getTestCaseName('Rejects File Overwrite')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=rhunt,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Skip Schema Validation Accept #@TestID Skip Schema Validation Accept #@TestPurpose Verify an import of a LDIF file containing invalided schema is accepted when skip schema validation is specified <
function name="backends_import_028" scope="local">
<
testcase name="getTestCaseName('Skip Schema Validation Accept')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'skipSchemaValidation' : 'TRUE',
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=dmiller,ou=People,dc=example,dc=com',
'uid=kwinters,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Skip Schema Validation Reject #@TestID skip schema validation reject #@TestPurpose Verify an import of a LDIF file containing invalided schema is rejected when skip schema validation is not specified <
function name="backends_import_029" scope="local">
<
testcase name="getTestCaseName('Skip Schema Validation Reject')">
<
call function="'testCase_Preamble'"/>
<
call function="'ImportLdifWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'backEnd' : DIRECTORY_INSTANCE_BE
<
call function="'checkImport'">
{ 'expectedEntries' : ['uid=dmiller,ou=People,dc=example,dc=com'],
'missingEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
'uid=kwinters,ou=People,dc=example,dc=com']
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Import Tests #@TestName Backend: Import: Error Codes #@TestPurpose Verify an import fails with an error code. <!-- Need to know what the error codes are -->