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