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