! 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 2009 Sun Microsystems, Inc. <!--- Test Case information #@TestMarker Backend Backup Tasks Tests #@TestName Backup: Backup Tasks 001 #@TestID Backup Tasks 001 #@TestPurpose Schedule a Backup of the data in OpenDS and test the #@TestSteps Client calls an online backup with completionNotify with an incorrect email address and with a correct email #@TestResult Success if backup returns 0 <
function name="backends_backup_tasks_001" scope="local">
<
testcase name="getTestCaseName('Create a backup task with --completionNotify')">
<
call function="'testCase_Preamble'"/>
'Backend Backup Tasks 001: Schedule a Backup task with --completionNotify incorrect email'
<
call function="'backup'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'backupID' : 'scheduled-backup',
'schedulePattern' : '"0 15 * * 1-5"' ,
'extraParams' : '--completionNotify foo' ,
'Backend Backup Tasks 001: Schedule a Backup task with --completionNotify correct email'
<
call function="'backup'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'backupID' : 'scheduled-backup',
'schedulePattern' : '"0 15 * * 1-5"' ,
'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 Backup Tasks Tests #@TestName Backup: Backup Tasks 002 #@TestID Backup Tasks 002 #@TestPurpose Schedule a Backup of the data in OpenDS and test the #@TestSteps Client calls an online backup with errorNotify with an incorrect email address and with a correct email #@TestResult Success if backup returns 0 <
function name="backends_backup_tasks_002" scope="local">
<
testcase name="getTestCaseName('Create a backup task with --errorNotify')">
<
call function="'testCase_Preamble'"/>
'Backend Backup Tasks 002: Schedule a Backup task with --errorNotify incorrect email'
<
call function="'backup'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'backupID' : 'scheduled-backup-2',
'schedulePattern' : '"0 15 * * 1-5"' ,
'extraParams' : '--errorNotify foo' ,
'Backend Backup Tasks 002: Schedule a Backup task with --errorNotify correct email'
<
call function="'backup'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'backupID' : 'scheduled-backup-2',
'schedulePattern' : '"0 15 * * 1-5"' ,
'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'"/>
<!--- Test Case information #@TestMarker Backend Backup Tasks Tests #@TestName Backup: Backup Tasks 003 #@TestID Backup Tasks 003 #@TestPurpose Schedule a Backup of the data in OpenDS and test the #@TestSteps Client calls an online backup #@TestResult Success if backup returns 0 <
function name="backends_backup_tasks_003" scope="local">
<
testcase name="getTestCaseName('Create a backup task with --dependency')">
<
call function="'testCase_Preamble'"/>
'Backend Backup Tasks 003: Schedule a Backup task with --dependency incorrect'
<
call function="'backup'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
'backupID' : 'scheduled-backup-3',
'extraParams' : '--dependency foo' ,
<
catch exception="'STAXException.*'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>