restore-tasks.xml revision c274c9240a50d300aec6cc72832af6805df5a2a0
0N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
0N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
0N/A<!--
0N/A ! CDDL HEADER START
0N/A !
0N/A ! The contents of this file are subject to the terms of the
0N/A ! Common Development and Distribution License, Version 1.0 only
0N/A ! (the "License"). You may not use this file except in compliance
0N/A ! with the License.
0N/A !
0N/A ! You can obtain a copy of the license at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
0N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
0N/A ! See the License for the specific language governing permissions
0N/A ! and limitations under the License.
0N/A !
0N/A ! When distributing Covered Code, exclude this CDDL HEADER in each
0N/A ! file and exclude the License file at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
0N/A ! add the following below this CDDL HEADER, with the fields enclosed
0N/A ! by brackets "[]" replaced with your own identifying information:
0N/A ! Portions Copyright [yyyy] [name of copyright owner]
0N/A !
0N/A ! CDDL HEADER END
0N/A !
0N/A ! Copyright 2008-2009 Sun Microsystems, Inc.
0N/A ! -->
0N/A<stax>
0N/A <defaultcall function="main_restore-tasks"/>
0N/A <function name="main_restore-tasks">
0N/A <sequence>
0N/A <block name="'restore-tasks'">
0N/A <try>
0N/A <sequence>
0N/A <script>
0N/A if not CurrentTestPath.has_key('group'):
0N/A CurrentTestPath['group']='backends'
0N/A CurrentTestPath['suite']=STAXCurrentBlock
0N/A </script>
0N/A <call function="'testSuite_Preamble'"/>
0N/A <!--- Test Suite information
0N/A #@TestSuiteName Backend Restore Tasks Tests
0N/A #@TestSuitePurpose Verify that the basic restore task functionality is working in the Directory Server.
0N/A #@TestSuiteID Restore Tasks Tests
0N/A #@TestSuiteGroup Restore Tasks
0N/A #@TestGroup Backend
0N/A #@TestScript restore-tasks.xml
0N/A #@TestHTMLLink http://opends.dev.java.net/
0N/A -->
0N/A <call function="'common_setup'">
0N/A {
0N/A 'quickStart' : False ,
0N/A 'loadData' : False ,
0N/A 'startServer' : True ,
0N/A 'stopServer' : False
0N/A }
0N/A </call>
0N/A
0N/A <!--- Test Case information
0N/A #@TestMarker Backend Restore Tasks Tests
0N/A #@TestName Restore Tasks: Restore Tasks 1
0N/A #@TestID RestoreTasks1
0N/A #@TestPurpose Verify an restore task of a LDIF file on the default backend.
0N/A #@TestPreamble
0N/A #@TestSteps An ldif file is created that describes the restore task to be
0N/A scheduled. The task is scheduled by adding the ldif file
0N/A with the static ldapmodify.
0N/A #@TestPostamble
0N/A #@TestResult Success if OpenDS returns 0
0N/A -->
0N/A <testcase name="getTestCaseName('Test 1')">
0N/A <sequence>
0N/A <call function="'testCase_Preamble'"/>
0N/A <message>
0N/A 'Backend RestoreTasks1: Restore the data in OpenDS by scheduling a task'
0N/A </message>
0N/A <call function="'restoreTask'">
0N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
0N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT,
0N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
0N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
0N/A 'taskID' : '4',
0N/A 'backupDir' : '%s/backends/' % remote.data
0N/A }
0N/A </call>
0N/A <call function="'checktestRC'">
0N/A { 'returncode' : RC ,
0N/A 'result' : STAXResult
0N/A }
0N/A </call>
0N/A <call function="'testCase_Postamble'"/>
0N/A </sequence>
0N/A </testcase>
0N/A
0N/A </sequence>
0N/A <finally>
0N/A <sequence>
0N/A <!-- Test Suite Cleanup -->
0N/A <message>'Finally: Global Backup Cleanup.'</message>
0N/A <try>
0N/A <try>
0N/A <call function="'common_cleanup'" />
<catch exception="'STAFException'">
<sequence>
<message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
</sequence>
</catch>
</try>
<finally>
<call function="'testSuite_Postamble'"/>
</finally>
</try>
</sequence>
</finally>
</try>
</block>
</sequence>
</function>
</stax>