4673N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
4673N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
4673N/A<!--
4673N/A ! CDDL HEADER START
4673N/A !
4673N/A ! The contents of this file are subject to the terms of the
4673N/A ! Common Development and Distribution License, Version 1.0 only
4673N/A ! (the "License"). You may not use this file except in compliance
4673N/A ! with the License.
4673N/A !
4673N/A ! You can obtain a copy of the license at
4673N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
4673N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
4673N/A ! See the License for the specific language governing permissions
4673N/A ! and limitations under the License.
4673N/A !
4673N/A ! When distributing Covered Code, include this CDDL HEADER in each
4673N/A ! file and include the License file at
4673N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
4673N/A ! add the following below this CDDL HEADER, with the fields enclosed
4673N/A ! by brackets "[]" replaced with your own identifying information:
4673N/A ! Portions Copyright [yyyy] [name of copyright owner]
4673N/A !
4673N/A ! CDDL HEADER END
4673N/A !
4673N/A ! Copyright 2009 Sun Microsystems, Inc.
5821N/A ! Portions Copyright 2012 ForgeRock AS.
4673N/A ! -->
4673N/A<stax>
4673N/A <defaultcall function="main_import-tasks"/>
4673N/A <function name="main_import-tasks" scope="local">
4673N/A <sequence>
4673N/A <block name="'main_import-tasks'">
4673N/A <try>
4673N/A <sequence>
4673N/A <script>
4673N/A CurrentTestPath['group']='backends'
4673N/A CurrentTestPath['suite']='import-tasks'
4673N/A
4673N/A __group=CurrentTestPath['group']
4673N/A __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
4673N/A </script>
4673N/A
4673N/A <!--- Test Suite information
4673N/A #@TestSuiteName Backend Import Tests
4673N/A #@TestSuitePurpose Verify that the basic import task functionality is working in the Directory Server.
4673N/A #@TestSuiteID Import Task Tests
4673N/A #@TestSuiteGroup Import Task
4673N/A #@TestGroup Backend
4673N/A #@TestScript import.xml
4673N/A #@TestHTMLLink http://opends.dev.java.net/
4673N/A -->
4673N/A
4673N/A <call function="'testSuite_Preamble'"/>
4673N/A
4673N/A <try>
4673N/A <sequence>
4673N/A
4673N/A <call function="'common_setup'">
4673N/A {
4673N/A 'quickStart' : False ,
4673N/A 'startServer' : True ,
4673N/A 'loadData' : False ,
4673N/A 'stopServer' : False
4673N/A }
4673N/A </call>
4673N/A
4673N/A <!-- List of Import of Test Functions -->
4673N/A <script>
4673N/A importList=[]
4673N/A importList.append('import-tasks/import-tasks_tests')
4673N/A </script>
4673N/A
4673N/A <!-- Import the files for this test suite -->
4673N/A <iterate var="__import" in="importList">
4673N/A <import machine="STAF_LOCAL_HOSTNAME"
4673N/A file="'%s/%s.xml' % (__groupdir,__import)"/>
4673N/A </iterate>
4673N/A
4673N/A <!-- List of Test Cases -->
4673N/A <script>
4673N/A testsList=[]
4673N/A testsList.append('backends_import_tasks_001')
4673N/A testsList.append('backends_import_tasks_002')
4673N/A testsList.append('backends_import_tasks_003')
4673N/A testsList.append('backends_import_tasks_004')
4673N/A testsList.append('backends_import_tasks_005')
4673N/A testsList.append('backends_import_tasks_006')
4673N/A testsList.append('backends_import_tasks_007')
4673N/A testsList.append('backends_import_tasks_008')
4673N/A testsList.append('backends_import_tasks_009')
4673N/A testsList.append('backends_import_tasks_010')
4673N/A testsList.append('backends_import_tasks_011')
4673N/A testsList.append('backends_import_tasks_012')
4673N/A testsList.append('backends_import_tasks_013')
4673N/A testsList.append('backends_import_tasks_014')
4673N/A testsList.append('backends_import_tasks_015')
4673N/A testsList.append('backends_import_tasks_016')
4673N/A testsList.append('backends_import_tasks_017')
4673N/A testsList.append('backends_import_tasks_018')
4673N/A testsList.append('backends_import_tasks_019')
4673N/A testsList.append('backends_import_tasks_020')
4673N/A testsList.append('backends_import_tasks_021')
4673N/A testsList.append('backends_import_tasks_022')
4673N/A testsList.append('backends_import_tasks_023')
4673N/A testsList.append('backends_import_tasks_024')
4673N/A testsList.append('backends_import_tasks_025')
4673N/A testsList.append('backends_import_tasks_026')
4673N/A testsList.append('backends_import_tasks_027')
4673N/A testsList.append('backends_import_tasks_028')
4673N/A </script>
4673N/A
4673N/A <!-- Execute the Tests -->
4673N/A <iterate var="__test" in="testsList">
4673N/A <sequence>
4673N/A <call function="'%s' % (__test)" />
4673N/A </sequence>
4673N/A </iterate>
4673N/A
4673N/A </sequence>
4673N/A <catch exception="'STAFException.TestSuite.SetupException'">
4673N/A <sequence>
4673N/A <message log="1" level="'fatal'">
4673N/A 'Setup of test suite failed.'
4673N/A </message>
4673N/A <rethrow/>
4673N/A </sequence>
4673N/A </catch>
4673N/A
4673N/A <finally>
4673N/A <message>'Test Cases Completed.'</message>
4673N/A </finally>
4673N/A
4673N/A </try>
4673N/A
4673N/A </sequence>
4673N/A
4673N/A <finally>
4673N/A <sequence>
4673N/A <!-- Test Suite Cleanup -->
5821N/A <message>'Finally: Global Cleanup.'</message>
4673N/A <try>
4673N/A <call function="'common_cleanup'" />
4673N/A <catch exception="'STAFException'">
4673N/A <sequence>
4673N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
4673N/A </sequence>
4673N/A </catch>
4673N/A <finally>
4673N/A <call function="'testSuite_Postamble'"/>
4673N/A </finally>
4673N/A </try>
4673N/A </sequence>
4673N/A </finally>
4673N/A
4673N/A </try>
4673N/A </block>
4673N/A </sequence>
4673N/A </function>
4673N/A</stax>