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