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

gary_williams
21.59.2009 c6b5f75749702af270d574ed5dbe392b486bc6a9
Re-commit functional tests backends import(-tasks)/export(-tasks) improvements
4 files modified
3354 ■■■■■ changed files
opends/tests/staf-tests/functional-tests/testcases/backends/export-tasks/export-tasks_tests.xml 90 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/backends/export/export_tests.xml 1429 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/backends/import-tasks/import-tasks_tests.xml 985 ●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/backends/import/import_tests.xml 850 ●●●●● patch | view | raw | blame | history
opends/tests/staf-tests/functional-tests/testcases/backends/export-tasks/export-tasks_tests.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../shared/stax.dtd">
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
@@ -23,39 +23,10 @@
 !
 ! CDDL HEADER END
 !
 !      Copyright 2006-2009 Sun Microsystems, Inc.
 !      Copyright 2009 Sun Microsystems, Inc.
 ! -->
<stax>
  <defaultcall function="main_export-tasks"/>
  <function name="main_export-tasks">
    <sequence>
      <block name="'export-tasks'">
        <try>
          <sequence>
            <script>
              if not CurrentTestPath.has_key('group'):
                CurrentTestPath['group']='backends'
              CurrentTestPath['suite']=STAXCurrentBlock
            </script>
            <call function="'testSuite_Preamble'" />
            <!--- Test Suite information
              #@TestSuiteName       Backend Export Tasks Tests
              #@TestSuitePurpose    Verify that the basic export task functionality is working in the Directory Server.
              #@TestSuiteID         Export Tasks Tests
              #@TestSuiteGroup      Export Tasks
              #@TestGroup           Backend
              #@TestScript          export.xml
              #@TestHTMLLink        http://opends.dev.java.net/
            -->
            <call function="'common_setup'">
              {
                'quickStart'  : False ,
                'loadData'    : False ,
                'startServer' : True ,
                'stopServer'  : False
              }
            </call>
            <sequence>
              <!--- Test Case information
                #@TestMarker          Backend Export Tasks Tests
                #@TestName            Export Tasks: Export Tasks 1
@@ -68,12 +39,20 @@
                #@TestPostamble
                #@TestResult          Success if OpenDS returns 0
              -->
              <testcase name="getTestCaseName('Test 1')">
  <function name="backends_export_tasks_001" scope="local">
    <testcase name="getTestCaseName('LDIF Default')">
      <try>
                <sequence>
                  <call function="'testCase_Preamble'"/>
                  <message>
                    'Backend ExportTasks1: Export the data in OpenDS by scheduling a task'
                  </message>
                  <call function="'exportLdifTask'">
                    { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
                      'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
@@ -83,14 +62,22 @@
                      'ldifFile'       : '%s/backends/ExportTasks1.ldif' % remote.data
                    }
                  </call>
                  <call function="'checktestRC'">
                    { 'returncode' : RC ,
                      'result'     : STAXResult
                    }
                  </call>
                  <call function="'testCase_Postamble'" />
                </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
              </testcase>
  </function>
              
              <!--- Test Case information
                #@TestMarker          Backend Export Tasks Tests
@@ -366,30 +353,5 @@
                #@TestPostamble
                #@TestResult
              -->
            </sequence>
  
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Backup Cleanup.'</message>
              <try>
                <try>
                  <call function="'common_cleanup'" />
                <catch exception="'STAFException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                  </sequence>
                </catch>
                </try>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/functional-tests/testcases/backends/export/export_tests.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../shared/stax.dtd">
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
@@ -14,8 +14,8 @@
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, exclude this CDDL HEADER in each
 ! file and exclude the License file at
 ! 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:
@@ -23,52 +23,35 @@
 !
 ! CDDL HEADER END
 !
 !      Copyright 2006-2009 Sun Microsystems, Inc.
 !      Copyright 2009 Sun Microsystems, Inc.
 ! -->
<stax>
  <defaultcall function="main_export"/>
  <function name="main_export">
    <sequence>
      <block name="'export'">
        <try>
          <sequence>
            <script>
              if not CurrentTestPath.has_key('group'):
                CurrentTestPath['group']='backends'
              CurrentTestPath['suite']=STAXCurrentBlock
            </script>
            <call function="'testSuite_Preamble'"/>
            <!--- Test Suite information
                  #@TestSuiteName       Backend: Export: Export Tests
                  #@TestSuitePurpose    Verify that the export functionality is working in the Directory Server.
                  #@TestSuiteID         Backend Export Tests
                  #@TestSuiteGroup      Export
                  #@TestGroup           Backend
                  #@TestScript          export.xml
                  #@TestHTMLLink        http://opends.dev.java.net/
  <!--- Test Case information
  #@TestMarker          Backend Import Tests
  #@TestName            Backend: Import: Create Second Instance
  #@TestID              Create second instance
  #@TestPurpose         Create second instance of OpenDS to verify export
  #@TestPreamble
  #@TestSteps
  #@TestPostamble
  #@TestResult
            -->
            <call function="'common_setup'">
              {
                'quickStart'  : False ,
                'startServer' : False ,
                'loadData'    : False ,
                'stopServer'  : False
              }
            </call>
  <function name="backends_export_001" scope="local">
    <testcase name="getTestCaseName('Create Second Instance')">
      <try>
        <sequence>
          <call function="'testCase_Preamble'" />
            
            <!-- Create a second instance to import data that was exported from the first instance -->
            <message>
              'Creating another instance for verifing the exports'
            </message>
            
            <script>
              DsInstancePort = int(DIRECTORY_INSTANCE_PORT)+1
              DsInstanceAdminPort = int(DIRECTORY_INSTANCE_ADMIN_PORT)+1
              DsInstanceDir = '%s/server2' % DIRECTORY_INSTANCE_DIR
            </script>
            <call function="'createInstance'">
              { 'dsHost'      : '%s' % DIRECTORY_INSTANCE_HOST,
                'dsDir'       : DsInstanceDir,
@@ -80,10 +63,61 @@
              }
            </call>
            
            <!-- Set the server backup the way it was before the backend tests -->
            <import machine="STAF_LOCAL_HOSTNAME"
                    file="'%s/testcases/quickstart/quickstart.xml' % (TESTS_DIR)"/>
            <call function="'main_quickstart'" />
          <!-- Start second server -->
          <call function="'StartDsWithScript'">
            {'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
          </call>
          <call function="'isAlive'">
            { 'noOfLoops'        : 10 ,
              'noOfMilliSeconds' : 2000,
              'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
              'dsInstancePort'   : DsInstancePort
            }
          </call>
          <!-- Create a second backend -->
          <script>
            options=[]
            options.append('--backend-name "nonDefault"')
            options.append('--set base-dn:"dc=non-default,dc=com"')
            options.append('--set enabled:true')
            options.append('--set writability-mode:enabled')
            options.append('-t local-db')
            createBackendOptions=' '.join(options)
          </script>
          <call function="'dsconfig'">
            { 'dsPath'              : '%s/%s' % (DsInstanceDir,OPENDSNAME),
              'dsInstanceHost'      : DIRECTORY_INSTANCE_HOST,
              'dsInstanceAdminPort' : DsInstanceAdminPort,
              'dsInstanceDn'        : DIRECTORY_INSTANCE_DN,
              'dsInstancePswd'      : DIRECTORY_INSTANCE_PSWD,
              'subcommand'          : 'create-backend',
              'optionsString'       : createBackendOptions
            }
          </call>
          <!-- Stop second server -->
          <call function="'StopDsWithScript'">
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
          </call>
        </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
    </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -97,7 +131,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
            <testcase name="getTestCaseName('Export default backend')">
  <function name="backends_export_002" scope="local">
    <testcase name="getTestCaseName('LDIF Default')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'" />
                <message>
@@ -110,34 +146,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_default.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_default.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location'  : mylocation,
                    'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
            {'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -157,16 +180,23 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -179,36 +209,119 @@
                  #@TestPostamble
                  #@TestResult          Success if Success if exportLDIF, importLDIF returns 0
            -->
            <testcase name="getTestCaseName('Export non-default backend')">
  <function name="backends_export_003" scope="local">
    <testcase name="getTestCaseName('LDIF Non Default')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
                  'Backend: Export: Export non-default backend'
                </message>
          <call function="'StartDsWithScript'"/>
          <script>
            options=[]
            options.append('--backend-name "nonDefault"')
            options.append('--set base-dn:"dc=non-default,dc=com"')
            options.append('--set enabled:true')
            options.append('--set writability-mode:enabled')
            options.append('-t local-db')
            createBackendOptions=' '.join(options)
          </script>
          <call function="'dsconfig'">
            { 'subcommand'     : 'create-backend',
              'optionsString'  : createBackendOptions
            }
          </call>
          <call function="'importLdifTask'">
            { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
              'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
              'dsInstanceDn'   : DIRECTORY_INSTANCE_DN,
              'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
              'taskID'         : STAXCurrentTestcase,
              'ldifFile'       : '%s/backends/nonDefault.ldif' % remote.data,
              'backEnd'        : 'nonDefault'
            }
          </call>
          <call function="'checkImport'">
            { 'expectedEntries' : ['uid=scarter,ou=People,dc=non-default,dc=com',
                                   'uid=dmiller, ou=People, dc=non-default,dc=com',
                                   'uid=rhunt, ou=People, dc=non-default,dc=com'],
               'startDS'        : 'no'
             }
          </call>
          <call function="'StopDsWithScript'"/>
                <call function="'exportLdif'">
                  { 'ldifFile' : '%s/backends/Export_schema.ldif' % remote.data,
                    'backEnd'  : 'schema'
            { 'ldifFile' : '%s/backends/Export_nonDefault.ldif' % remote.data,
              'backEnd'  : 'nonDefault'
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_nonDefault.ldif' % remote.data,
              'dsBackEnd'   : 'nonDefault' ,
              'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <call function="'importLdif'">
                  { 'ldifFile'    : '%s/backends/Export_schema.ldif' % remote.data,
                    'backEnd'     : 'schema',
          <!-- StartDS -->
          <call function="'StartDsWithScript'">
            {'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
          </call>
          <!-- Wait for DS to start -->
          <call function="'isAlive'">
            { 'noOfLoops'        : 10 ,
              'noOfMilliSeconds' : 2000,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'knownIssue'  : '2173'
              'dsInstancePort'   : DsInstancePort
                  }
                </call>
  
                <call function="'testCase_Postamble'"/>
          <call function="'checkImport'">
            { 'expectedEntries' : ['uid=scarter,ou=People,dc=non-default,dc=com',
                                   'uid=dmiller, ou=People, dc=non-default,dc=com',
                                   'uid=rhunt, ou=People, dc=non-default,dc=com'],
              'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
              'dsPort'      : DsInstancePort,
              'dsAdminPort' : DsInstanceAdminPort,
              'startDS'     : 'no'
            }
          </call>
          <!-- StopDS -->
          <call function="'StopDsWithScript'">
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
              'dsAdminPort' : DsInstanceAdminPort,
              'dsBindDN'    : mydn,
              'dsBindPwd'   : mypswd
            }
          </call>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
                  #@TestName            Backend: Export: Fractional Include Branch
@@ -221,7 +334,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
            <testcase name="getTestCaseName('Export Fractional Include Branch')">
  <function name="backends_export_004" scope="local">
    <testcase name="getTestCaseName('Fractional Include Branch')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -233,35 +348,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_IncludeBranch.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_IncludeBranch.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
  
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -281,16 +382,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -304,7 +414,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
            <testcase name="getTestCaseName('Export Fractional Include Branches')">
  <function name="backends_export_005" scope="local">
    <testcase name="getTestCaseName('Fractional Include Branches')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -317,32 +429,21 @@
                  }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile'    : '%s/backends/Export_IncludeBranches.ldif' % remote.data,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_IncludeBranches.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
      
          <!-- StartDS -->
          <call function="'StartDsWithScript'">
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
          </call>
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -362,17 +463,27 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
                  #@TestName            Backend: Export: Fractional Exclude Branch
@@ -385,7 +496,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
            <testcase name="getTestCaseName('Export Fractional Exclude Branch')">
  <function name="backends_export_006" scope="local">
    <testcase name="getTestCaseName('Fractional Exclude Branch')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -397,35 +510,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_ExcludeBranch.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_ExcludeBranch.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -445,17 +544,27 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
                  #@TestName            Backend: Export: Fractional Exclude Branches
@@ -468,7 +577,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_007" scope="local">
            <testcase name="getTestCaseName('Export Fractional Exclude Branches')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -480,35 +591,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile'    : '%s/backends/Export_ExcludeBranches.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_ExcludeBranches.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
  
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location'  : mylocation,
                    'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -528,16 +625,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -551,7 +657,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_008" scope="local">
            <testcase name="getTestCaseName('Export Fractional Branches Mix')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -563,36 +671,25 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_MixBranches.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_MixBranches.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location'  : mylocation,
                    'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort}
              'dsInstancePort'   : DsInstancePort
            }
                </call>
                
                <call function="'checkImport'">
@@ -607,16 +704,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -630,7 +736,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_009" scope="local">
            <testcase name="getTestCaseName('Export Fractional Include Attribute')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -642,35 +750,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_IncludeAttr.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_IncludeAttr.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
  
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -689,16 +783,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -712,7 +815,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_010" scope="local">
            <testcase name="getTestCaseName('Export Fractional Include Attributes')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -724,34 +829,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_IncludeAttrs.ldif' % remote.data,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_IncludeAttrs.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
              'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -772,16 +864,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -795,7 +896,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_011" scope="local">
            <testcase name="getTestCaseName('Export Fractional Exclude Attribute')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -807,35 +910,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile'    : '%s/backends/Export_ExcludeAttr.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_ExcludeAttr.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
  
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location'  : mylocation,
                    'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -854,16 +943,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -877,7 +975,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_012" scope="local">
            <testcase name="getTestCaseName('Export Fractional Exclude Attributes')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -889,35 +989,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile'    : '%s/backends/Export_ExcludeAttrs.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_ExcludeAttrs.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
  
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location'  : mylocation,
                    'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -938,16 +1024,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -961,7 +1056,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_013" scope="local">
            <testcase name="getTestCaseName('Export Fractional Mix')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -973,35 +1070,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_FractionalMix.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_FractionalMix.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
  
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1022,16 +1105,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1045,7 +1137,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_014" scope="local">
            <testcase name="getTestCaseName('Export Filtered Include')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1057,35 +1151,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_FilteredInclude.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_FilteredInclude.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1105,16 +1185,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1128,7 +1217,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_015" scope="local">
            <testcase name="getTestCaseName('Export Filtered Includes')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1140,35 +1231,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_FilteredIncludes.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_FilteredIncludes.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1188,16 +1265,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
                  
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1211,7 +1297,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_016" scope="local">
            <testcase name="getTestCaseName('Export Filtered Exclude')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1223,35 +1311,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_FilteredExclude.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_FilteredExclude.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
  
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location'  : mylocation,
                    'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1273,16 +1347,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1296,7 +1379,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_017" scope="local">
            <testcase name="getTestCaseName('Export Filtered Excludes')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1308,34 +1393,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_FilteredExcludes.ldif' % remote.data,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_FilteredExcludes.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
              'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1357,16 +1429,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1380,7 +1461,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_018" scope="local">
            <testcase name="getTestCaseName('Export Filtered Includes')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1393,34 +1476,25 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile'    : '%s/backends/Export_FilteredIncludes.ldif' % remote.data,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_FilteredIncludes.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
              'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
            }
                </call>
                
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location'  : mylocation,
                    'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort}
              'dsInstancePort'   : DsInstancePort
            }
                </call>
                
                <call function="'checkImport'">
@@ -1437,15 +1511,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd}
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1459,7 +1543,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_019" scope="local">
            <testcase name="getTestCaseName('Export Filtered Includes Complex')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1470,34 +1556,22 @@
                    'extraParams' : '-I "|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)"'
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_FilteredComplexIncludes.ldif' % remote.data,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_FilteredComplexIncludes.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
              'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location'  : mylocation,
                    'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1517,15 +1591,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd}
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1539,7 +1623,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_020" scope="local">
            <testcase name="getTestCaseName('Export Filtered Excludes Complex')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1551,35 +1637,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_FilteredComplexExcludes.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_FilteredComplexExcludes.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1599,16 +1671,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1622,7 +1703,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_021" scope="local">
            <testcase name="getTestCaseName('Export Fractional Filtered Mix')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1634,35 +1717,21 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_FilteredMix.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/Export_FilteredMix.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location'  : mylocation,
                    'dsPath'    : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1682,16 +1751,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1705,7 +1783,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_022" scope="local">
            <testcase name="getTestCaseName('Export Append To LDIF')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1717,35 +1797,22 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/Export_FilteredMix.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile'  : '%s/backends/Export_FilteredMix.ldif' % remote.data,
              'dsAppend'    : 'True' ,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1765,17 +1832,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1789,7 +1864,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_023" scope="local">
            <testcase name="getTestCaseName('Export Compress LDIF')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1801,34 +1878,22 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile'    : '%s/backends/ExportCompressed.ldif' % remote.data,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'extraParams' : '-c'}
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile'      : '%s/backends/ExportCompressed.ldif' % remote.data,
              'dsIsCompressed'  : 'True' ,
              'dsBackEnd'       : DIRECTORY_INSTANCE_BE ,
              'dsPath'          : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)}
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -1848,16 +1913,25 @@
                
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1871,7 +1945,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_024" scope="local">
            <testcase name="getTestCaseName('Export Encrypt LDIF')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1882,37 +1958,28 @@
                    'extraParams' : '-y'
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile'    : '%s/backends/ExportEncrypted.ldif' % remote.data,
                    'extraParams' : '-y',
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile'    : '%s/backends/ExportEncrypted.ldif' % remote.data,
              'dsIsEncrypted' : 'True' ,
              'dsBackEnd'     : DIRECTORY_INSTANCE_BE ,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=tmorris,ou=People,dc=example,dc=com',
                                         'uid=kvaughan,ou=People,dc=example,dc=com',
@@ -1925,16 +1992,25 @@
                </call>
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
            
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -1947,6 +2023,40 @@
                  #@TestResult
            -->
            
  <function name="backends_export_025" scope="local">
    <testcase name="getTestCaseName('Hash Signed LDIF')">
      <try>
        <sequence>
          <call function="'testCase_Preamble'"/>
          <message>
            'Backend: Export: Hash Signed LDIF'
          </message>
          <!-- Known issue -->
          <call function="'checktestRC'">
            { 'returncode' : 1 ,
              'expected'   : 0 ,
              'result'     : 'Hash Signed LDIF export is not implemented',
              'issue'      : '839'
            }
          </call>
        </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
    </testcase>
  </function>
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
                  #@TestName            Backend: Export: Wrap Column
@@ -1959,7 +2069,9 @@
                  #@TestPostamble
                  #@TestResult          Success if exportLDIF, importLDIF, and checkImport returns 0
            -->
  <function name="backends_export_026" scope="local">
            <testcase name="getTestCaseName('Export Wrap Column')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <message>
@@ -1970,31 +2082,21 @@
                    'extraParams' : '--wrapColumn 25'
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'importLdif'">
                  { 'ldifFile' : '%s/backends/ExportWrapCol.ldif' % remote.data,
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile' : '%s/backends/ExportWrapCol.ldif' % remote.data,
              'dsBackEnd'   : DIRECTORY_INSTANCE_BE ,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <!-- StartDS -->
                <call function="'StartDsWithScript'">
                  { 'location' : mylocation,
                    'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME)
                  }
            { 'dsPath'   : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <!-- Wait for DS to start -->
                <call function="'isAlive'">
                  { 'location'         : mylocation,
                    'noOfLoops'        : 10 ,
            { 'noOfLoops'        : 10 ,
                    'noOfMilliSeconds' : 2000,
                    'dsPath'           : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsInstancePort'   : DsInstancePort
@@ -2012,16 +2114,25 @@
                </call>
                <!-- StopDS -->
                <call function="'StopDsWithScript'">
                  { 'location'    : mylocation,
                    'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME),
                    'dsAdminPort' : DsInstanceAdminPort,
                    'dsBindDN'    : mydn,
                    'dsBindPwd'   : mypswd
                  }
            { 'dsPath'      : '%s/%s' % (DsInstanceDir, OPENDSNAME) }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
  </function>
              
            <!--- Test Case information
                  #@TestMarker          Backend Export Tests
@@ -2037,28 +2148,4 @@
            -->
             <!-- Need to know what the error codes are -->
  
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Backup Cleanup.'</message>
              <try>
                <try>
                  <call function="'common_cleanup'" />
                <catch exception="'STAFException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                  </sequence>
                </catch>
                </try>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/functional-tests/testcases/backends/import-tasks/import-tasks_tests.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../shared/stax.dtd">
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
@@ -23,42 +23,11 @@
 !
 ! CDDL HEADER END
 !
 !      Copyright 2006-2009 Sun Microsystems, Inc.
 !      Copyright 2009 Sun Microsystems, Inc.
 ! -->
<stax>
  <defaultcall function="main_import-tasks"/>
  <function name="main_import-tasks">
    <sequence>
      <block name="'import-tasks'">
      
        <try>
          <sequence>
            <script>
              if not CurrentTestPath.has_key('group'):
                CurrentTestPath['group']='backends'
              CurrentTestPath['suite']=STAXCurrentBlock
            </script>
            <call function="'testSuite_Preamble'"/>
            <!--- Test Suite information
              #@TestSuiteName       Backend Import Tasks Tests
              #@TestSuitePurpose    Verify that the basic import using the task based functionality is working in the Directory Server.
              #@TestSuiteID         Import Tasks Tests
              #@TestSuiteGroup      Import-Tasks
              #@TestGroup           Backend
              #@TestScript          import-tasks.xml
              #@TestHTMLLink        http://opends.dev.java.net/
            -->
            <call function="'common_setup'">
              {
                'quickStart'  : False ,
                'loadData'    : False ,
                'startServer' : True ,
                'stopServer'  : False
              }
            </call>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Import Tasks: LDIF Default
@@ -69,9 +38,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_001" scope="local">
            <testcase name="getTestCaseName('LDIF Default')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
@@ -81,11 +58,7 @@
                    'ldifFile'       : '%s/backends/Example.ldif' % remote.data
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -93,10 +66,99 @@
                     'startDS'        : 'no' 
                   }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
    <!--- Test Case information
    #@TestMarker          Backend Import TasksTests
    #@TestName            Backend: Import Tasks: LDIF Non Default
    #@TestID              LDIF Non Default
    #@TestPurpose         Verify an import task of a LDIF file using a differrent backend to the default.
    #@TestPreamble
    #@TestSteps           ./import-ldif.sh -n "nonDefault" -l ../ldif/Example.ldif
    #@TestPostamble
    #@TestResult
    -->
  <function name="backends_import_tasks_002" scope="local">
    <testcase name="getTestCaseName('LDIF Non Default')">
      <try>
        <sequence>
          <call function="'testCase_Preamble'"/>
          <script>
            options=[]
            options.append('--backend-name "nonDefault"')
            options.append('--set base-dn:"dc=non-default,dc=com"')
            options.append('--set enabled:true')
            options.append('--set writability-mode:enabled')
            options.append('-t local-db')
            createBackendOptions=' '.join(options)
          </script>
          <call function="'dsconfig'">
            { 'subcommand'     : 'create-backend',
              'optionsString'  : createBackendOptions
            }
          </call>
          <call function="'importLdifTask'">
            { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
              'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
              'dsInstanceDn'   : DIRECTORY_INSTANCE_DN,
              'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
              'taskID'         : STAXCurrentTestcase,
              'ldifFile'       : '%s/backends/nonDefault.ldif' % remote.data,
              'backEnd'        : 'nonDefault'
            }
          </call>
          <call function="'checkImport'">
            { 'expectedEntries' : ['uid=scarter,ou=People,dc=non-default,dc=com',
                                   'uid=dmiller, ou=People, dc=non-default,dc=com',
                                   'uid=rhunt, ou=People, dc=non-default,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>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
    </testcase>
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Include Branch
@@ -107,9 +169,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_003" scope="local">
            <testcase name="getTestCaseName('Fractional Include Branch')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -120,10 +190,6 @@
                    'includeBranches' : ['dc=com'],
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
@@ -132,10 +198,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Include Branches
@@ -146,9 +227,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_004" scope="local">
            <testcase name="getTestCaseName('Fractional Include Branches')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -159,11 +248,7 @@
                    'includeBranches' : ['dc=com','dc=example,dc=com']
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -171,10 +256,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Exclude Branch
@@ -185,9 +285,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_005" scope="local">
            <testcase name="getTestCaseName('Fractional Exclude Branch')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'" />
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -198,11 +306,7 @@
                    'excludeBranches' : ['ou=Departed,ou=People,dc=example,dc=com'],
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -212,10 +316,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Exclude Branches
@@ -226,9 +345,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_006" scope="local">
            <testcase name="getTestCaseName('Fractional Exclude Branches')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'" />
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -240,11 +367,7 @@
                                         'cn=QA Managers,ou=groups,dc=example,dc=com']
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -255,10 +378,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Branches Mix
@@ -269,9 +407,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_007" scope="local">
            <testcase name="getTestCaseName('Fractional Branches Mix')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -284,11 +430,6 @@
                  }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -299,10 +440,24 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Include Attribute
@@ -313,9 +468,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_008" scope="local">
            <testcase name="getTestCaseName('Fractional Include Attribute')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'" />
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'    : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'    : DIRECTORY_INSTANCE_PORT,
@@ -326,21 +489,32 @@
                    'includeAttributes' : ['dc'],
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['dc=com','dc=example,dc=com'],
                    'missingEntries'  : ['ou=People,dc=example,dc=com'],
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Include Attributes
@@ -351,9 +525,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_009" scope="local">
            <testcase name="getTestCaseName('Fractional Include Attributes')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'" />
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -364,11 +546,7 @@
                    'includeAttributes' : ['dc','cn','ou','sn']
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -376,10 +554,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Exclude Attribute
@@ -390,9 +583,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_010" scope="local">
            <testcase name="getTestCaseName('Fractional Exclude Attribute')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'" />
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'    : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'    : DIRECTORY_INSTANCE_PORT,
@@ -403,20 +604,32 @@
                    'excludeAttributes' : ['userpassword']
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries'   : ['uid=scarter,ou=People,dc=example,dc=com'],
                    'missingAttributes' : ['userpassword'],
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Exclude Attributes
@@ -427,9 +640,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_011" scope="local">
            <testcase name="getTestCaseName('Fractional Exclude Attributes')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'" />
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'    : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'    : DIRECTORY_INSTANCE_PORT,
@@ -440,21 +661,32 @@
                    'excludeAttributes' : ['userpassword','mail','roomnumber']
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries'   : ['uid=scarter,ou=People,dc=example,dc=com'],
                    'missingAttributes' : ['userpassword','mail','roomnumber'],
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Mix
@@ -465,9 +697,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_012" scope="local">
            <testcase name="getTestCaseName('Fractional Mix')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'" />
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'    : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'    : DIRECTORY_INSTANCE_PORT,
@@ -480,11 +720,7 @@
                    'includeAttributes' : ['dc','cn','ou','sn'],
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -494,10 +730,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Filtered Include
@@ -508,9 +759,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_013" scope="local">
            <testcase name="getTestCaseName('Filtered Include')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'" />
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -521,10 +780,7 @@
                    'includeFilters'  : ['objectclass=*'],
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -532,10 +788,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Filtered Exclude
@@ -546,9 +817,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_014" scope="local">
            <testcase name="getTestCaseName('Filtered Exclude')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -559,11 +838,7 @@
                    'excludeFilters'  : ['objectclass=person'],
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['dc=example,dc=com',
                                         'ou=People,dc=example,dc=com'],
@@ -573,10 +848,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Filtered Includes
@@ -587,9 +877,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_015" scope="local">
            <testcase name="getTestCaseName('Filtered Includes')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -600,11 +898,7 @@
                    'includeFilters'  : ['objectclass=domain*','objectclass=organizationalunit']
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['dc=example,dc=com',
                                         'ou=People,dc=example,dc=com'],
@@ -614,10 +908,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Filtered Excludes
@@ -628,9 +937,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_016" scope="local">
            <testcase name="getTestCaseName('Filtered Excludes')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -641,21 +958,32 @@
                    'excludeFilters'  : ['objectclass=person','objectclass=organizationalunit'],
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['dc=example,dc=com'],
                    'missingEntries'  : ['ou=People,dc=example,dc=com'],
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Filtered Includes Complex
@@ -666,9 +994,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_017" scope="local">
            <testcase name="getTestCaseName('Filtered Includes Complex')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -679,10 +1015,7 @@
                    'includeFilters'  : ['|(objectclass=person)(objectclass=domain)(objectclass=organizationalunit)'],
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -690,10 +1023,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Filtered Excludes Complex
@@ -704,9 +1052,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_018" scope="local">
            <testcase name="getTestCaseName('Filtered Excludes Complex')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -717,21 +1073,32 @@
                    'excludeFilters'  : ['&amp;(objectclass=person)(ou=Departed)'],
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'],
                    'missingEntries'  : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com'],
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Fractional Filtered Mix
@@ -742,9 +1109,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_019" scope="local">
            <testcase name="getTestCaseName('Fractional Filtered Mix')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'    : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'    : DIRECTORY_INSTANCE_PORT,
@@ -757,21 +1132,32 @@
                    'excludeAttributes' : ['userpassword']
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries'   : ['uid=scarter,ou=People,dc=example,dc=com'],
                    'missingAttributes' : ['userpassword'],
                    'startDS'           : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Append
@@ -782,9 +1168,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_020" scope="local">
            <testcase name="getTestCaseName('Append')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
@@ -795,10 +1189,7 @@
                    'append'         : 'TRUE'
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries'  : ['ou=Departed,ou=People,dc=example,dc=com',
                                          'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
@@ -806,10 +1197,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks:Append Replace Existing
@@ -820,9 +1226,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_021" scope="local">
            <testcase name="getTestCaseName('Append Replace Existing')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'  : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'  : DIRECTORY_INSTANCE_PORT,
@@ -834,10 +1248,7 @@
                    'replaceExisting' : 'TRUE'
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries'  : ['ou=Departed,ou=People,dc=example,dc=com',
                                          'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
@@ -845,10 +1256,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Compressed
@@ -859,9 +1285,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_022" scope="local">
            <testcase name="getTestCaseName('Compressed')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
@@ -872,11 +1306,7 @@
                    'isCompressed'   : 'TRUE'
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -884,10 +1314,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Encrypted
@@ -899,9 +1344,16 @@
              #@TestResult
            -->
            
  <function name="backends_import_tasks_023" scope="local">
            <testcase name="getTestCaseName('Encrypted')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
@@ -912,6 +1364,7 @@
                    'isEncrypted'    : 'TRUE'
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -927,10 +1380,25 @@
                    'issue'      : '839'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Hashed Signed
@@ -941,7 +1409,61 @@
              #@TestPostamble
              #@TestResult
            -->
            <!-- Test Not Implemented. Feature not avaliable -->
  <function name="backends_import_tasks_024" scope="local">
    <testcase name="getTestCaseName('Signed Hash')">
      <try>
        <sequence>
          <call function="'testCase_Preamble'"/>
          <call function="'importLdifTask'">
            { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
              'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
              'dsInstanceDn'   : DIRECTORY_INSTANCE_DN,
              'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
              'taskID'         : STAXCurrentTestcase,
              'ldifFile'       : '%s/backends/Example.ldif' % remote.data,
              'isEncrypted'    : 'TRUE'
            }
          </call>
          <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'],
              'startDS'         : 'no'
            }
          </call>
          <call function="'checktestRC'">
            { 'returncode' : 1 ,
              'expected'   : 0 ,
              'result'     : 'Signed Hash import is not implemented',
              'issue'      : '839'
            }
          </call>
        </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
    </testcase>
  </function>
            
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
@@ -953,9 +1475,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_025" scope="local">
            <testcase name="getTestCaseName('Rejects File')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
@@ -966,11 +1496,7 @@
                    'rejectsFile'    : './rejects'
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -979,10 +1505,25 @@
                  }
                </call>
                <!-- Should check there is a rejects file and the contents are correct -->
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Rejects File Overwrite
@@ -993,9 +1534,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_026" scope="local">
            <testcase name="getTestCaseName('Overwrite Rejects File')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'       : DIRECTORY_INSTANCE_PORT,
@@ -1007,11 +1556,7 @@
                    'overwriteRejectsFile' : 'TRUE'
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -1020,10 +1565,25 @@
                  }
                </call>
                <!-- Should check there is a rejects file and the contents are correct -->
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
              #@TestMarker          Backend Import Tasks Tests
              #@TestName            Backend: Import Tasks: Skip Schema Validation Accept
@@ -1034,9 +1594,17 @@
              #@TestPostamble
              #@TestResult
            -->
  <function name="backends_import_tasks_027" scope="local">
              <testcase name="getTestCaseName('Skip Schema Validation Accept')">
      <try>
                <sequence>
                  <call function="'testCase_Preamble'"/>
                  <call function="'importLdifTask'">
                    { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                      'dsInstancePort'       : DIRECTORY_INSTANCE_PORT,
@@ -1047,11 +1615,7 @@
                      'skipSchemaValidation' : 'TRUE'
                    }
                  </call>
                  <call function="'checktestRC'">
                    { 'returncode' : RC ,
                      'result'     : STAXResult
                    }
                  </call>
                  <call function="'checkImport'">
                    { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                           'uid=dmiller,ou=People,dc=example,dc=com',
@@ -1059,23 +1623,46 @@
                      'startDS'         : 'no'
                    }
                  </call>
                  <call function="'testCase_Postamble'"/>
                </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
              </testcase>
              
  </function>
              <!--- Test Case information
                #@TestMarker          Backend Import Tasks Tests
                #@TestName            Backend: Import Tasks: Skip Schema Validation Reject
                #@TestID              Skip Schema Validation Reject
                #@TestPurpose         Verify an import task of a LDIF file containing invalided schema is rejected when skip schema validation is not specified
      #@TestPurpose         Verify an import task of a LDIF file containing invalid schema is rejected when skip schema validation is not specified
                #@TestPreamble
                #@TestSteps
                #@TestPostamble
                #@TestResult
              -->
  <function name="backends_import_tasks_028" scope="local">
            <testcase name="getTestCaseName('Skip Schema Validation Reject')">
      <try>
              <sequence>
                <call function="'testCase_Preamble'"/>
                <call function="'importLdifTask'">
                  { 'dsInstanceHost'       : DIRECTORY_INSTANCE_HOST,
                    'dsInstancePort'       : DIRECTORY_INSTANCE_PORT,
@@ -1086,11 +1673,7 @@
                    'skipSchemaValidation' : 'FALSE'
                  }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult
                  }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=dmiller,ou=People,dc=example,dc=com'],
                    'missingEntries'  : ['uid=scarter,ou=People,dc=example,dc=com',
@@ -1098,10 +1681,25 @@
                    'startDS'         : 'no'
                  }
                </call>
                <call function="'testCase_Postamble'"/>
              </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
                  #@TestMarker          Backend Import Tasks Tests
                  #@TestName            Backend: Import Tasks: Error Codes
@@ -1114,31 +1712,4 @@
            -->
            <!-- Need to know what the error codes are -->
            
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Backup Cleanup.'</message>
              <try>
                <try>
                  <call function="'common_cleanup'" />
                <catch exception="'STAFException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                  </sequence>
                </catch>
                </try>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>
opends/tests/staf-tests/functional-tests/testcases/backends/import/import_tests.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "../../../shared/stax.dtd">
<!DOCTYPE stax SYSTEM "../../../../shared/stax.dtd">
<!--
 ! CDDL HEADER START
 !
@@ -23,50 +23,11 @@
 !
 ! CDDL HEADER END
 !
 !      Copyright 2006-2009 Sun Microsystems, Inc.
 !      Copyright 2009 Sun Microsystems, Inc.
 ! -->
<stax>
  <defaultcall function="main_import"/>
  <function name="main_import">
    <sequence>
      <block name="'import'">
        <try>
          <sequence>
            <script>
              if not CurrentTestPath.has_key('group'):
                CurrentTestPath['group']='backends'
              CurrentTestPath['suite']=STAXCurrentBlock
            </script>
            <call function="'testSuite_Preamble'"/>
            <!--- Test Suite information
            #@TestSuiteName       Backend Import Tests
            #@TestSuitePurpose    Verify that the basic import functionality is working in the Directory Server.
            #@TestSuiteID         Import Tests
            #@TestSuiteGroup      Import
            #@TestGroup           Backend
            #@TestScript          import.xml
            #@TestHTMLLink        http://opends.dev.java.net/
            -->
            <call function="'common_setup'">
              {
                'quickStart'  : False ,
                'startServer' : False ,
                'loadData'    : False ,
                'stopServer'  : False
              }
            </call>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: LDIF Default
@@ -78,36 +39,46 @@
            #@TestResult
            -->
              
  <function name="backends_import_001" scope="local">
            <testcase name="getTestCaseName('LDIF Default')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
                    
                <call function="'ImportLdifWithScript'">
                  { 'location'    : STAF_REMOTE_HOSTNAME ,
                    'dsLdifFile'  : '%s/backends/Example.ldif' % remote.data,
            { 'dsLdifFile'  : '%s/backends/Example.ldif' % remote.data,
                    'dsBackEnd'   : DIRECTORY_INSTANCE_BE
                  }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <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>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: LDIF Non Default
@@ -119,33 +90,63 @@
            #@TestResult
            -->
      
            <!--  Not clear how to create a second backend
  <function name="backends_import_002" scope="local">
            <testcase name="getTestCaseName('LDIF Non Default')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
      
                <call function="'importLdif'">
                  { 'ldifFile'    : '%s/backends/Example.ldif' % remote.data,
                    'backEnd'     : 'nonDefault' }
          <call function="'StartDsWithScript'"/>
          <script>
            options=[]
            options.append('--backend-name "nonDefault"')
            options.append('--set base-dn:"dc=non-default,dc=com"')
            options.append('--set enabled:true')
            options.append('--set writability-mode:enabled')
            options.append('-t local-db')
            createBackendOptions=' '.join(options)
          </script>
          <call function="'dsconfig'">
            { 'subcommand'     : 'create-backend',
              'optionsString'  : createBackendOptions
            }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
          <call function="'StopDsWithScript'"/>
          <call function="'ImportLdifWithScript'">
            { 'dsLdifFile'  : '%s/backends/nonDefault.ldif' % remote.data,
              'dsBackEnd'   : 'nonDefault'
            }
                </call>
      
                <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'] }
            { 'expectedEntries' : ['uid=scarter,ou=People,dc=non-default,dc=com',
                                   'uid=dmiller, ou=People, dc=non-default,dc=com',
                                   'uid=rhunt, ou=People, dc=non-default,dc=com'] }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
      -->
  </function>
      
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
@@ -157,36 +158,44 @@
            #@TestPostamble
            #@TestResult
            -->
  <function name="backends_import_003" scope="local">
      
            <testcase name="getTestCaseName('Fractional Include Branch')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
  
                <call function="'ImportLdifWithScript'">
                  { 'location'        : STAF_REMOTE_HOSTNAME,
                    'dsLdifFile'      : '%s/backends/Include.ldif' % remote.data,
            { 'dsLdifFile'      : '%s/backends/Include.ldif' % remote.data,
                    'dsIncludeBranch' : ['dc=com'] }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <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>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
                
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Include Branch with backend ID
@@ -200,8 +209,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_004" scope="local">
            <testcase name="getTestCaseName('Fractional Include Branch with backend ID')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -214,23 +227,29 @@
                  }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <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>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Include Branches
@@ -242,8 +261,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_005" scope="local">
            <testcase name="getTestCaseName('Fractional Include Branches')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -255,23 +278,29 @@
                  }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <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>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Exclude Branch
@@ -283,8 +312,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_006" scope="local">
            <testcase name="getTestCaseName('Fractional Exclude Branch')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -297,11 +330,6 @@
                  }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -311,12 +339,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Exclude Branches
@@ -328,8 +367,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_007" scope="local">
            <testcase name="getTestCaseName('Fractional Exclude Branches')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -337,31 +380,38 @@
                <call function="'ImportLdifWithScript'">
                  { 'location'        : STAF_REMOTE_HOSTNAME,
                    'dsLdifFile'      : '%s/backends/Exclude.ldif' % remote.data,
                    'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com'],
              'dsExcludeBranch' : ['ou=Departed,ou=People,dc=example,dc=com', 'ou=unit1, ou=People, dc=example,dc=com'],
                    'dsBackEnd'       : DIRECTORY_INSTANCE_BE
                  }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <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']
                                   'uid=brammage,ou=Departed,ou=People,dc=example,dc=com',
                                   'uid=arammell, ou=unit1, ou=People, dc=example,dc=com']
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Branches Mix
@@ -373,8 +423,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_008" scope="local">
            <testcase name="getTestCaseName('Fractional Branches Mix')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -387,11 +441,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -401,12 +450,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Include Attribute
@@ -418,8 +478,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_009" scope="local">
            <testcase name="getTestCaseName('Fractional Include Attribute')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -432,23 +496,29 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['dc=com','dc=example,dc=com'],
                    'missingEntries'  : ['ou=People,dc=example,dc=com'] 
                  }
                </call>
      
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Include Attributes
@@ -460,8 +530,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_010" scope="local">
            <testcase name="getTestCaseName('Fractional Include Attributes')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -474,11 +548,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -486,12 +555,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
      
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Exclude Attribute
@@ -502,9 +582,12 @@
            #@TestPostamble
            #@TestResult
            -->
  <function name="backends_import_011" scope="local">
      
            <testcase name="getTestCaseName('Fractional Exclude Attribute')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -517,23 +600,29 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries'   : ['uid=scarter,ou=People,dc=example,dc=com'],
                    'missingAttributes' : ['userpassword']
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Exclude Attributes
@@ -545,8 +634,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_012" scope="local">
            <testcase name="getTestCaseName('Fractional Exclude Attributes')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -559,23 +652,30 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries'   : ['uid=scarter,ou=People,dc=example,dc=com'],
                    'missingAttributes' : ['userpassword']
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Mix
@@ -587,8 +687,12 @@
            #@TestResult
            -->
      
   <function name="backends_import_013" scope="local">
            <testcase name="getTestCaseName('Fractional Mix')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -602,11 +706,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller, ou=People, dc=example,dc=com',
@@ -616,12 +715,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Filtered Include
@@ -633,8 +743,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_014" scope="local">
            <testcase name="getTestCaseName('Filtered Include')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -647,11 +761,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -659,12 +768,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Filtered Exclude
@@ -676,8 +796,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_015" scope="local">
            <testcase name="getTestCaseName('Filtered Exclude')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -690,11 +814,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['dc=example,dc=com',
                                         'ou=People,dc=example,dc=com'],
@@ -704,12 +823,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Filtered Includes
@@ -721,8 +851,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_016" scope="local">
            <testcase name="getTestCaseName('Filtered Includes')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -735,11 +869,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['dc=example,dc=com',
                                         'ou=People,dc=example,dc=com'],
@@ -749,12 +878,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Filtered Excludes
@@ -766,8 +906,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_017" scope="local">
            <testcase name="getTestCaseName('Filtered Excludes')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -780,23 +924,29 @@
                    }
                </call>
                  
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['dc=example,dc=com'],
                    'missingEntries'  : ['ou=People,dc=example,dc=com']
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Filtered Includes Complex
@@ -808,8 +958,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_018" scope="local">
            <testcase name="getTestCaseName('Filtered Includes Complex')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -822,11 +976,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -834,12 +983,23 @@
                  }          
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Filtered Excludes Complex
@@ -851,8 +1011,12 @@
            #@TestResult
            -->
            
  <function name="backends_import_019" scope="local">
            <testcase name="getTestCaseName('Filtered Excludes Complex')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -865,23 +1029,29 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'],
                    'missingEntries'  : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com']
                  }          
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Fractional Filtered Mix
@@ -893,8 +1063,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_020" scope="local">
            <testcase name="getTestCaseName('Fractional Filtered Mix')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -908,23 +1082,29 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=rhunt,ou=People,dc=example,dc=com'],
                    'missingEntries'  : ['uid=fvinker,ou=Departed,ou=People,dc=example,dc=com']
                  }          
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Append
@@ -936,8 +1116,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_021" scope="local">
            <testcase name="getTestCaseName('Append')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -950,11 +1134,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  {  'expectedEntries'  : ['ou=Departed,ou=People,dc=example,dc=com',
                                          'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
@@ -962,12 +1141,23 @@
                  }                        
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
      
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Append Replace Existing
@@ -979,8 +1169,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_022" scope="local">
            <testcase name="getTestCaseName('Append Replace Existing')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -994,11 +1188,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  {  'expectedEntries'  : ['ou=Departed,ou=People,dc=example,dc=com',
                                          'uid=fvinker,ou=Departed,ou=People,dc=example,dc=com',
@@ -1006,12 +1195,23 @@
                  }                        
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
      
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Compressed
@@ -1023,8 +1223,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_023" scope="local">
            <testcase name="getTestCaseName('Compressed')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -1036,10 +1240,6 @@
                    'dsBackEnd'          : DIRECTORY_INSTANCE_BE
                    }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
      
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
@@ -1048,12 +1248,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
      
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Encrypted
@@ -1065,8 +1276,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_024" scope="local">
            <testcase name="getTestCaseName('Encrypted')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -1079,9 +1294,66 @@
                    }
                </call>
      
          <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>
          <!-- Known issue -->
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
            { 'returncode' : 1 ,
              'expected'   : 0 ,
              'result'     : 'Encrypted LDIF import is not implemented',
              'issue'      : '839'
            }
          </call>
        </sequence>
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
    </testcase>
  </function>
    <!--- Test Case information
    #@TestMarker          Backend Import Tests
    #@TestName            Backend: Import: Hashed Signed
    #@TestID              Hashed Signed
    #@TestPurpose         Verify an import of a LDIF file specifying the data to import is hashed/signed.
    #@TestPreamble
    #@TestSteps
    #@TestPostamble
    #@TestResult
    -->
  <function name="backends_import_025" scope="local">
    <testcase name="getTestCaseName('Hash Signed')">
      <try>
        <sequence>
          <call function="'testCase_Preamble'"/>
          <call function="'ImportLdifWithScript'">
              { 'location'         : STAF_REMOTE_HOSTNAME,
              'dsLdifFile'         : '%s/backends/Example.ldif' % remote.data,
              'dsIsEncrypted'      : 'TRUE',
              'dsBackEnd'          : DIRECTORY_INSTANCE_BE
              }
                </call>
      
                <call function="'checkImport'">
@@ -1095,27 +1367,27 @@
                <call function="'checktestRC'">
                  { 'returncode' : 1 ,
                    'expected'   : 0 ,
                    'result'     : 'Encrypted LDIF export is not implemented',
              'result'     : 'Hash Signed LDIF import is not implemented',
                    'issue'      : '839'
                  }
                </call>
  
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
      
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Hashed Signed
            #@TestID              Hashed Signed
            #@TestPurpose         Verify an import of a LDIF file specifying the data to import is hashed/signed.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
            -->
  </function>
      
            <!-- Test Not Implemented. Feature not avaliable -->
            
@@ -1130,8 +1402,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_026" scope="local">
            <testcase name="getTestCaseName('Rejects File')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -1144,11 +1420,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -1156,12 +1427,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Rejects File Overwrite
@@ -1173,8 +1455,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_027" scope="local">
            <testcase name="getTestCaseName('Rejects File Overwrite')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -1187,11 +1473,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -1199,12 +1480,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Skip Schema Validation Accept
@@ -1216,8 +1508,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_028" scope="local">
            <testcase name="getTestCaseName('Skip Schema Validation Accept')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -1230,11 +1526,6 @@
                    }
                </call>
      
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=scarter,ou=People,dc=example,dc=com',
                                         'uid=dmiller,ou=People,dc=example,dc=com',
@@ -1242,12 +1533,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Skip Schema Validation Reject
@@ -1259,8 +1561,12 @@
            #@TestResult
            -->
      
  <function name="backends_import_029" scope="local">
            <testcase name="getTestCaseName('Skip Schema Validation Reject')">
      
      <try>
              <sequence>
      
                <call function="'testCase_Preamble'"/>
@@ -1272,11 +1578,6 @@
                    }
                </call>
                
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
                </call>
                <call function="'checkImport'">
                  { 'expectedEntries' : ['uid=dmiller,ou=People,dc=example,dc=com'],
                    'missingEntries'  : ['uid=scarter,ou=People,dc=example,dc=com',
@@ -1284,12 +1585,23 @@
                  }
                </call>
                
                <call function="'testCase_Postamble'"/>
              </sequence>
      
        <catch exception="'STAXException.*'" typevar="eType" var="eInfo">
          <message log="1" level="'fatal'">
            '%s: Test failed. eInfo(%s)' % (eType,eInfo)
          </message>
        </catch>
        <finally>
          <call function="'testCase_Postamble'"/>
        </finally>
      </try>
            </testcase>
            
  </function>
            <!--- Test Case information
            #@TestMarker          Backend Import Tests
            #@TestName            Backend: Import: Error Codes
@@ -1303,34 +1615,4 @@
      
            <!-- Need to know what the error codes are -->
    
          </sequence>
          <finally>
            <sequence>
              <!-- Test Suite Cleanup -->
              <message>'Finally: Global Backup Cleanup.'</message>
              <try>
                <try>
                  <call function="'common_cleanup'" />
                <catch exception="'STAFException'">
                  <sequence>
                    <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
                  </sequence>
                </catch>
                </try>
              <finally>
                <call function="'testSuite_Postamble'"/>
              </finally>
              </try>
            </sequence>
          </finally>
        </try>
      </block>
    </sequence>
  </function>
</stax>