| | |
| | | #@TestPurpose Schedule a backup in task mode to be executed immedialy in asynchronous mode |
| | | #@TestPreamble |
| | | #@TestStep Execute a backup in mode task |
| | | #@TestStep Execute manage-tasks tools and check a backup task is managed |
| | | #@TestStep Specify the -t 0 |
| | | #@TestStep The task is scheduled for immediate execution |
| | | #@TestSteps The script returns immedialy after scheduling the task |
| | |
| | | 'backEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Backup', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <message>'--- Check log files backup_asynchronous ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | |
| | | #@TestPurpose Schedule a Export in task mode to be executed immedialy in synchronous mode |
| | | #@TestPreamble |
| | | #@TestStep Execute a export-ldif in a task |
| | | #@TestStep Execute manage-tasks output and check the Export task is returned |
| | | #@TestStep Don't specify the -t option |
| | | #@TestStep The task is scheduled for immediate execution and the script must wait the end of the export |
| | | #@TestPostamble |
| | |
| | | 'backEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Export', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <message>'--- Check log files ---'</message> |
| | | <call function="'listFolder'"> |
| | |
| | | </else> |
| | | </if> |
| | | |
| | | |
| | | <call function="'RestartDs'"> |
| | | { 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsPort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | #@TestPurpose Schedule a import in task mode to be executed immedialy in synchronous mode |
| | | #@TestPreamble |
| | | #@TestStep Execute a import-ldif in a task |
| | | #@TestStep Execute manage-tasks output and check the Import task is returned |
| | | #@TestStep Don't specify the -t option |
| | | #@TestStep The task is scheduled for immediate execution and the script must wait the end of the import |
| | | #@TestPostamble |
| | |
| | | 'dsBackEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Import', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | |
| | | <!-- Check data are imported --> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,dc=example,dc=com', |
| | |
| | | </call> |
| | | <call function="'Sleep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'sleepForMilliSeconds' : 90000 } |
| | | 'sleepForMilliSeconds' : 40000 } |
| | | </call> |
| | | |
| | | <!-- Check data are imported --> |
| | |
| | | </call> |
| | | <call function="'Sleep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'sleepForMilliSeconds' : 90000 } |
| | | 'sleepForMilliSeconds' : 40000 } |
| | | </call> |
| | | |
| | | <!-- Check data are imported --> |
| | |
| | | #@TestPurpose Schedule a restore in task mode to be executed immedialy in synchronous mode |
| | | #@TestPreamble |
| | | #@TestStep Execute a restore in a task |
| | | #@TestStep Execute manage-tasks tools and check an Restore tasks is managed |
| | | #@TestStep Don't specify the -t option |
| | | #@TestStep The task is scheduled for immediate execution and the script must wait the end of the restore |
| | | #@TestPostamble |
| | |
| | | 'backupDir' : '%s/tasks/backup_synchronous' % logsRemoteDataDir} |
| | | </call> |
| | | |
| | | <!-- manage-tasks --> |
| | | <call function="'manage-tasks'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsQuiet' : ' ' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'searchStringForSubstring'"> |
| | | { 'returnString' : returnString, |
| | | 'testString' : 'Restore', |
| | | 'expectedResult' : '1' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |