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