Added retries on manage-tasks tool to avoid random test failure
| | |
| | | 'backupID' : 'recurring-backup-1', |
| | | 'backEnd' : DIRECTORY_INSTANCE_BE} |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'recurring-backup-1', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Waiting on start time', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'recurring-backup-1', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Waiting on start time', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </loop> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 120000 } |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'recurring-backup-1', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Completed successfully', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Waiting on start time', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'recurring-backup-1', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Completed successfully', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Waiting on start time', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </loop> |
| | | |
| | | <!-- cancel the recurring task recurring-backup-1 with manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Task recurring-backup-1 canceled', |
| | | 'expectedResult' : '1' } |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Task recurring-backup-1 canceled', |
| | | 'returnString' : returnString } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'LOOP %s' % loop</message> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'LOOP %s' % loop</message> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | --> |
| | | |
| | | |
| | | <testcase name="getTestCaseName('schedule recurring backup task with the same name as previously')"> |
| | | <testcase name="getTestCaseName('schedule recurring backup task with the same name as previously')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'recurring-backup-1', |
| | | 'expectedResult' : '0' } |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'recurring-backup-1', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 1 } |
| | | </call> |
| | | |
| | | |
| | | <call function="'backup'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | |
| | | 'backEnd' : DIRECTORY_INSTANCE_BE} |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'recurring-backup-1', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Waiting on start time', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'recurring-backup-1', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Waiting on start time', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </loop> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 120000 } |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'recurring-backup-1', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Completed successfully', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'recurring-backup-1', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Completed successfully', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </loop> |
| | | |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2007-2009 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! Portions Copyright 2011-2013 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="export-ldif"/> |
| | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'LOOP %s' % loop</message> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | {'location' : STAF_REMOTE_HOSTNAME, |
| | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'LOOP %s' % loop</message> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | 'schedulePattern' : '"0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * *"', |
| | | 'backEnd' : DIRECTORY_INSTANCE_BE} |
| | | </call> |
| | | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'ExportTask-', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Waiting on start time', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'ExportTask-', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Waiting on start time', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </loop> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 120000 } |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'ExportTask-*', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Completed successfully', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Waiting on start time', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'ExportTask-*', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Completed successfully', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Waiting on start time', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </loop> |
| | | |
| | | <!-- cancel the recurring task ExportTask-* with manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Task ExportTask-', |
| | | 'expectedResult' : '1' } |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Task ExportTask-\* canceled', |
| | | 'returnString' : returnString } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'canceled', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | 'schedulePattern' : '"0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * *"', |
| | | 'backEnd' : DIRECTORY_INSTANCE_BE} |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'ImportTask-', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Waiting on start time', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'ImportTask-', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Waiting on start time', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </loop> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 120000 } |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'ImportTask-*', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Completed successfully', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Waiting on start time', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'ImportTask-*', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Completed successfully', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Waiting on start time', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </loop> |
| | | |
| | | <!-- cancel the recurring task ExportTask-* with manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Task ImportTask-', |
| | | 'expectedResult' : '1' } |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Task ImportTask-\* canceled', |
| | | 'returnString' : returnString } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'canceled', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'LOOP %s' % loop</message> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'recurring-restore-1', |
| | | 'expectedResult' : '1' } |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'recurring-restore-1', |
| | | 'returnString' : returnString } |
| | | </call> |
| | | |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 120000 } |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'recurring-restore-1', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Completed successfully', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Waiting on start time', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <script>checkRC=9999</script> |
| | | <loop from="1" to="10" var="loop" while="checkRC != 0"> |
| | | <sequence> |
| | | <message>'MANAGE-TASKS LOOP %s' % loop</message> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'recurring-restore-1', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Completed successfully', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Waiting on start time', |
| | | 'returnString' : returnString , |
| | | 'expectedRC' : 'noCheck' } |
| | | </call> |
| | | |
| | | <script> |
| | | checkRC = checkRC + STAXResult[0] |
| | | </script> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </loop> |
| | | |
| | | <!-- cancel the recurring task recurring-restore-1 with manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Task recurring-restore-1 canceled', |
| | | 'expectedResult' : '1' } |
| | | <call function="'searchString'"> |
| | | { 'expectedString' : 'Task recurring-restore-1 canceled', |
| | | 'returnString' : returnString } |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |