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