<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
! The contents of this file are subject to the terms of the ! Common Development and Distribution License, Version 1.0 only ! (the "License"). You may not use this file except in compliance ! You can obtain a copy of the license at ! See the License for the specific language governing permissions ! and limitations under the License. ! When distributing Covered Code, exclude this CDDL HEADER in each ! file and exclude the License file at ! add the following below this CDDL HEADER, with the fields enclosed ! by brackets "[]" replaced with your own identifying information: ! Portions Copyright [yyyy] [name of copyright owner] ! Copyright 2008-2009 Sun Microsystems, Inc. <!--- Test Case information #@TestMarker Backend Restore Tasks Tests #@TestName Restore Tasks: Restore Tasks 001 #@TestID Restore Tasks 001 #@TestPurpose Create a restore task of the data in OpenDS and test the #@TestSteps Client calls an online restore with completionNotify with an incorrect email address and with a correct email #@TestResult Success if OpenDS returns 0 <
function name="backends_restore_tasks_001" scope="local">
<
testcase name="getTestCaseName('Create a restore task with --completionNotify')">
<
call function="'testCase_Preamble'"/>
'Backend Restore Tasks 001: Create a backup of the data'
<
call function="'backup'">
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'Backend Restore Tasks 001: Restore with --completionNotify incorrect email'
<
call function="'restore'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'extraParams' : '--completionNotify foo',
'Backend Restore Tasks 001: Restore with --completionNotify correct email'
<
call function="'restore'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'extraParams' : '--completionNotify foo@example.com'
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker Backend Restore Tasks Tests #@TestName Restore Tasks: Restore Tasks 002 #@TestID Restore Tasks 002 #@TestPurpose Create a restore task of the data in OpenDS and test the #@TestSteps Client calls an online restore with errorNotify with an incorrect email address and with a correct email #@TestResult Success if OpenDS returns 0 <
function name="backends_restore_tasks_002" scope="local">
<
testcase name="getTestCaseName('Create a restore task with --errorNotify')">
<
call function="'testCase_Preamble'"/>
'Backend Restore Tasks 002: Create a backup of the data'
<
call function="'backup'">
'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'Backend Restore Tasks 002: Restore with --errorNotify incorrect email'
<
call function="'restore'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'extraParams' : '--errorNotify foo',
'Backend Restore Tasks 002: Restore with --errorNotify correct email'
<
call function="'restore'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'extraParams' : '--errorNotify foo@example.com'
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>