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 !
6982N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A ! or http://forgerock.org/license/CDDLv1.0.html.
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
6982N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A ! If applicable, add the following below this CDDL HEADER, with the
6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying
6982N/A ! 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"/>
4673N/A <function name="main_import" scope="local">
4673N/A <sequence>
4673N/A <block name="'main_import'">
4673N/A <try>
4673N/A <sequence>
4673N/A <script>
4673N/A CurrentTestPath['group']='backends'
4673N/A CurrentTestPath['suite']='import'
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 functionality is working in the Directory Server.
4673N/A #@TestSuiteID Import Tests
4673N/A #@TestSuiteGroup Import
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' : False ,
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/import_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_001')
4673N/A testsList.append('backends_import_002')
4673N/A testsList.append('backends_import_003')
4673N/A testsList.append('backends_import_004')
4673N/A testsList.append('backends_import_005')
4673N/A testsList.append('backends_import_006')
4673N/A testsList.append('backends_import_007')
4673N/A testsList.append('backends_import_008')
4673N/A testsList.append('backends_import_009')
4673N/A testsList.append('backends_import_010')
4673N/A testsList.append('backends_import_011')
4673N/A testsList.append('backends_import_012')
4673N/A testsList.append('backends_import_013')
4673N/A testsList.append('backends_import_014')
4673N/A testsList.append('backends_import_015')
4673N/A testsList.append('backends_import_016')
4673N/A testsList.append('backends_import_017')
4673N/A testsList.append('backends_import_018')
4673N/A testsList.append('backends_import_019')
4673N/A testsList.append('backends_import_020')
4673N/A testsList.append('backends_import_021')
4673N/A testsList.append('backends_import_022')
4673N/A testsList.append('backends_import_023')
4673N/A testsList.append('backends_import_024')
4673N/A testsList.append('backends_import_025')
4673N/A testsList.append('backends_import_026')
4673N/A testsList.append('backends_import_027')
4673N/A testsList.append('backends_import_028')
4673N/A testsList.append('backends_import_029')
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>