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

gary_williams
13.18.2007 50f8a165bf3b68795f4f8d424286788c1abb2a13
opends/tests/functional-tests/testcases/backends/export-tasks.xml
@@ -34,369 +34,377 @@
    <sequence>
      <script>
        CurrentTestPath['suite']='export-tasks'
      </script>
      <call function="'testSuite_Preamble'"/>
         <!--- Start DS -->
         <sequence>
           <message>
              'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT)
           </message>
      <block name="'export-tasks'">
        <sequence>
  
            <call function="'StartDsWithScript'">
             { 'location'  : STAF_REMOTE_HOSTNAME }
            </call>
           <call function="'checkRC'">
               { 'returncode' : RC ,
                 'result'     : STAXResult }
           </call>
         </sequence>
         <sequence>
            <!--- Check that DS started -->
            <call function="'isAlive'">
              { 'noOfLoops'        : 5 ,
                'noOfMilliSeconds' : 2000 }
            </call>
      <!--- 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/
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Export Tasks 1
        #@TestID              ExportTasks1
        #@TestPurpose         Verify an export task of a LDIF file on the default backend.
        #@TestPreamble
        #@TestSteps           An ldif file is created that describes the export task to be
                              scheduled. The task is scheduled by adding the ldif file
                              with the static ldapmodify.
        #@TestPostamble
        #@TestResult          Success if OpenDS returns 0
      -->
          <script>
            CurrentTestPath['suite']=STAXCurrentBlock
          </script>
          <call function="'testSuite_Preamble'"/>
             <!--- Start DS -->
             <sequence>
               <message>
                  'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT)
               </message>
      
            <testcase name="'Backend: Export Tasks 1'">
              <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,
                    'dsInstanceDn'   : DIRECTORY_INSTANCE_DN,
                    'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
                    'taskID'         : '1',
                    'ldifFile'       : '%s/backends/ExportTasks1.ldif' % STAGED_DATA_DIR
                  }
                <call function="'StartDsWithScript'">
                 { 'location'  : STAF_REMOTE_HOSTNAME }
                </call>
                <call function="'checktestRC'">
                  { 'returncode' : RC ,
                    'result'     : STAXResult }
               <call function="'checkRC'">
                   { 'returncode' : RC ,
                     'result'     : STAXResult }
               </call>
             </sequence>
             <sequence>
                <!--- Check that DS started -->
                <call function="'isAlive'">
                  { 'noOfLoops'        : 5 ,
                    'noOfMilliSeconds' : 2000 }
                </call>
                <call function="'testCase_Postamble'"/>
          <!--- 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/
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Export Tasks 1
            #@TestID              ExportTasks1
            #@TestPurpose         Verify an export task of a LDIF file on the default backend.
            #@TestPreamble
            #@TestSteps           An ldif file is created that describes the export task to be
                                  scheduled. The task is scheduled by adding the ldif file
                                  with the static ldapmodify.
            #@TestPostamble
            #@TestResult          Success if OpenDS returns 0
          -->
                <testcase name="'Backend: Export Tasks 1'">
                  <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,
                        'dsInstanceDn'   : DIRECTORY_INSTANCE_DN,
                        'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
                        'taskID'         : '1',
                        'ldifFile'       : '%s/backends/ExportTasks1.ldif' % STAGED_DATA_DIR
                      }
                    </call>
                    <call function="'checktestRC'">
                      { 'returncode' : RC ,
                        'result'     : STAXResult }
                    </call>
                    <call function="'testCase_Postamble'"/>
                  </sequence>
                </testcase>
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: LDIF Default
            #@TestID              LDIF Default
            #@TestPurpose         Verify an export task of a LDIF file on the default backend.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: LDIF Non Default
            #@TestID              LDIF Non Default
            #@TestPurpose         Verify an export task of a LDIF file on a differrent backend to the default.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Include Branch
            #@TestID              Fractional Include Branch
            #@TestPurpose         Verify an export task of a LDIF file specifying a branch that should be included in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Include Branches
            #@TestID              Fractional Include Branches
            #@TestPurpose         Verify an export task of a LDIF file specifying multiple branches that should be included in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Exclude Branch
            #@TestID              Fractional Exclude Branch
            #@TestPurpose         Verify an export task of a LDIF file specifying a branch that should be excluded in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Exclude Branches
            #@TestID              Fractional Exclude Branches
            #@TestPurpose         Verify an export task of a LDIF file specifying multiple branches that should be excluded in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Branches Mix
            #@TestID              Fractional Branches Mix
            #@TestPurpose         Verify an export task of a LDIF file specifying a mix of include and exclude branches.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Include Attribute
            #@TestID              Fractional Include Attribute
            #@TestPurpose         Verify an export task of a LDIF file specifying an attribute that should be included in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Include Attributes
            #@TestID              Fractional Include Attributes
            #@TestPurpose         Verify an export task of a LDIF file specifying multiple attributes that should be included in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Exclude Attribute
            #@TestID              Fractional Exclude Attribute
            #@TestPurpose         Verify an export task of a LDIF file specifying an attribute that should be excluded in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Exclude Attributes
            #@TestID              Fractional Exclude Attributes
            #@TestPurpose         Verify an export task of a LDIF file specifying multiple attribute that should be excluded in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Mix
            #@TestID              Fractional Mix
            #@TestPurpose         Verify an export task of a LDIF file specifying a mix of fractional attributes and branches.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Filtered Include
            #@TestID              Filtered Include
            #@TestPurpose         Verify an export task of a LDIF file specifying a search filter control which entries are included in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Filtered Includes
            #@TestID              Filtered Includes
            #@TestPurpose         Verify an export task of a LDIF file specifying a search filter control which entries are included in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Filtered Excludes
            #@TestID              Filtered Excludes
            #@TestPurpose         Verify an export task of a LDIF file specifying multiple search filters control which entries are excluded in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Filtered Includes
            #@TestID              Filtered Includes
            #@TestPurpose         Verify an export task of a LDIF file specifying multiple search filters control which entries are included in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Filtered Excludes Complex
            #@TestID              Filtered Excludes Complex
            #@TestPurpose         Verify an export task of a LDIF file specifying complex search filters control which entries are excluded in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Filtered Excludes Complex
            #@TestID              Filtered Excludes Complex
            #@TestPurpose         Verify an export task of a LDIF file specifying complex search filters control which entries are excluded in the export task.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Fractional Filtered Mix
            #@TestID              Fractional Filtered Mix
            #@TestPurpose         Verify an export task of a LDIF file specifying a mix of fractional and filtered.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Append To LDIF
            #@TestID              Append To LDIF
            #@TestPurpose         Verify an export task of a LDIF file specifying that the export task process should append to the existing LDIF file.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Compress LDIF
            #@TestID              Compress LDIF
            #@TestPurpose         Verify an export task where the LDIF file is compressed.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Encrypt LDIF
            #@TestID              Encrypt LDIF
            #@TestPurpose         Verify an export task where the LDIF file is encrypted.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Hash Signed LDIF
            #@TestID              Hash Signed LDIF
            #@TestPurpose         Verify an export task where the LDIF file is hashed/signed.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Wrap Column
            #@TestID              Wrap Column
            #@TestPurpose         Verify an export task of a LDIF file containing wrapped columns
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
          <!--- Test Case information
            #@TestMarker          Backend Export Tasks Tests
            #@TestName            Export Tasks: Error Codes
            #@TestID              Error Codes
            #@TestPurpose         Verify an export task fails with an error code.
            #@TestPreamble
            #@TestSteps
            #@TestPostamble
            #@TestResult
          -->
             </sequence>
          <call function="'testSuite_Postamble'"/>
      
              </sequence>
            </testcase>
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: LDIF Default
        #@TestID              LDIF Default
        #@TestPurpose         Verify an export task of a LDIF file on the default backend.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: LDIF Non Default
        #@TestID              LDIF Non Default
        #@TestPurpose         Verify an export task of a LDIF file on a differrent backend to the default.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Include Branch
        #@TestID              Fractional Include Branch
        #@TestPurpose         Verify an export task of a LDIF file specifying a branch that should be included in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Include Branches
        #@TestID              Fractional Include Branches
        #@TestPurpose         Verify an export task of a LDIF file specifying multiple branches that should be included in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Exclude Branch
        #@TestID              Fractional Exclude Branch
        #@TestPurpose         Verify an export task of a LDIF file specifying a branch that should be excluded in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Exclude Branches
        #@TestID              Fractional Exclude Branches
        #@TestPurpose         Verify an export task of a LDIF file specifying multiple branches that should be excluded in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Branches Mix
        #@TestID              Fractional Branches Mix
        #@TestPurpose         Verify an export task of a LDIF file specifying a mix of include and exclude branches.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Include Attribute
        #@TestID              Fractional Include Attribute
        #@TestPurpose         Verify an export task of a LDIF file specifying an attribute that should be included in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Include Attributes
        #@TestID              Fractional Include Attributes
        #@TestPurpose         Verify an export task of a LDIF file specifying multiple attributes that should be included in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Exclude Attribute
        #@TestID              Fractional Exclude Attribute
        #@TestPurpose         Verify an export task of a LDIF file specifying an attribute that should be excluded in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Exclude Attributes
        #@TestID              Fractional Exclude Attributes
        #@TestPurpose         Verify an export task of a LDIF file specifying multiple attribute that should be excluded in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Mix
        #@TestID              Fractional Mix
        #@TestPurpose         Verify an export task of a LDIF file specifying a mix of fractional attributes and branches.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Filtered Include
        #@TestID              Filtered Include
        #@TestPurpose         Verify an export task of a LDIF file specifying a search filter control which entries are included in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Filtered Includes
        #@TestID              Filtered Includes
        #@TestPurpose         Verify an export task of a LDIF file specifying a search filter control which entries are included in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Filtered Excludes
        #@TestID              Filtered Excludes
        #@TestPurpose         Verify an export task of a LDIF file specifying multiple search filters control which entries are excluded in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Filtered Includes
        #@TestID              Filtered Includes
        #@TestPurpose         Verify an export task of a LDIF file specifying multiple search filters control which entries are included in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Filtered Excludes Complex
        #@TestID              Filtered Excludes Complex
        #@TestPurpose         Verify an export task of a LDIF file specifying complex search filters control which entries are excluded in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Filtered Excludes Complex
        #@TestID              Filtered Excludes Complex
        #@TestPurpose         Verify an export task of a LDIF file specifying complex search filters control which entries are excluded in the export task.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Fractional Filtered Mix
        #@TestID              Fractional Filtered Mix
        #@TestPurpose         Verify an export task of a LDIF file specifying a mix of fractional and filtered.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Append To LDIF
        #@TestID              Append To LDIF
        #@TestPurpose         Verify an export task of a LDIF file specifying that the export task process should append to the existing LDIF file.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Compress LDIF
        #@TestID              Compress LDIF
        #@TestPurpose         Verify an export task where the LDIF file is compressed.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Encrypt LDIF
        #@TestID              Encrypt LDIF
        #@TestPurpose         Verify an export task where the LDIF file is encrypted.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Hash Signed LDIF
        #@TestID              Hash Signed LDIF
        #@TestPurpose         Verify an export task where the LDIF file is hashed/signed.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Wrap Column
        #@TestID              Wrap Column
        #@TestPurpose         Verify an export task of a LDIF file containing wrapped columns
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
      <!--- Test Case information
        #@TestMarker          Backend Export Tasks Tests
        #@TestName            Export Tasks: Error Codes
        #@TestID              Error Codes
        #@TestPurpose         Verify an export task fails with an error code.
        #@TestPreamble
        #@TestSteps
        #@TestPostamble
        #@TestResult
      -->
         </sequence>
      <call function="'testSuite_Postamble'"/>
        </sequence>
      </block>
    </sequence>
  </function>