| | |
| | | </call> |
| | | |
| | | <message>'--- Check log files backup_asynchronous ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'backup_asynchronous' |
| | | } |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'backup_asynchronous' |
| | | } |
| | | </call> |
| | | |
| | | <!-- check the export ldif file has been created--> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <call function="'testFailed'"/> |
| | | <else> |
| | | <call function="'testPassed'"/> |
| | | </else> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | |
| | | <testcase name="getTestCaseName('schedule backup task for immediate execution in synchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'backup'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | </call> |
| | | |
| | | <message>'--- Check log files ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'backup_synchronous' |
| | | } |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'backup_synchronous' |
| | | } |
| | | </call> |
| | | <!-- check the export ldif file has been created--> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <!-- check the export ldif file has been created--> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <call function="'testFailed'"/> |
| | | <else> |
| | | <call function="'testPassed'"/> |
| | | </else> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Portions Copyright 2007 Sun Microsystems, Inc. |
| | | ! --> |
| | | ! --> |
| | | <stax> |
| | | |
| | | |
| | | <defaultcall function="cleanup"/> |
| | | <function name="cleanup"> |
| | | <sequence> |
| | | <block name="'cleanup'"> |
| | | <sequence> |
| | | <sequence> |
| | | <block name="'Block DS Process Stop'"> |
| | | <!--- Stop DS --> |
| | | <!--- Stop DS --> |
| | | <sequence> |
| | | <message> |
| | | 'Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT) |
| | | </message> |
| | | |
| | | |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsPort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD } |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsPort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | <!--- End Block DS Process Stop --> |
| | | </block> |
| | | <block name="'Block Remove DS Topology'"> |
| | | <!-- Remove the topology created for the test suite --> |
| | | <!-- Remove the topology created for the test suite --> |
| | | <sequence> |
| | | <message> |
| | | 'Remove DS topology created for the Test Suite' |
| | | 'Remove DS topology created for the Test Suite' |
| | | </message> |
| | | <call function="'removeTopology'"/> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | <!-- End Block Remove DS Topology--> |
| | | </block> |
| | | </sequence> |
| | | </block> |
| | | </sequence> |
| | | </sequence> |
| | | </function> |
| | | </stax> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | ! --> |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="export-ldif"/> |
| | | <function name="export-ldif" scope="local"> |
| | | <block name="STAXCurrentFunction"> |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentFunction |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | |
| | | <!--- Test Suite information |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentFunction |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Tasks |
| | | #@TestSuitePurpose Verify that the basic export functionality is working in mode task |
| | | #@TestSuiteID export Tests |
| | |
| | | --> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <!--- Test Case information |
| | | #@TestMarker Backend export Tests |
| | | #@TestName Backend: export: LDIF Default |
| | | #@TestID LDIF Default |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule export-ldif task for immediate execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | |
| | | <call function="'exportLdif'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'ldifFile' : '%s/tasks/export_asynchronous' % logsRemoteDataDir, |
| | | 'startTask' : '0', |
| | | 'backEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | <message>'--- Check log files export_asynchronous ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'export_asynchronous' |
| | | } |
| | | </call> |
| | | |
| | | <!-- check the export ldif file has been created--> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <call function="'testFailed'"/> |
| | | <testcase name="getTestCaseName('schedule export-ldif task for immediate execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'exportLdif'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'ldifFile' : '%s/tasks/export_asynchronous' % logsRemoteDataDir, |
| | | 'startTask' : '0', |
| | | 'backEnd' : 'userRoot'} |
| | | </call> |
| | | <message>'--- Check log files export_asynchronous ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'export_asynchronous' |
| | | } |
| | | </call> |
| | | |
| | | <!-- check the export ldif file has been created--> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <call function="'testFailed'"/> |
| | | <else> |
| | | <call function="'testPassed'"/> |
| | | <call function="'testPassed'"/> |
| | | </else> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend export Tests |
| | | #@TestName Backend: export: LDIF Default |
| | | #@TestID LDIF Default |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule export-ldif task for immediate execution in synchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'exportLdif'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'ldifFile' : '%s/tasks/export_synchronous' % logsRemoteDataDir, |
| | | 'backEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | |
| | | <message>'--- Check log files ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'export_synchronous' |
| | | } |
| | | </call> |
| | | <!-- check the export ldif file has been created--> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <call function="'testFailed'"/> |
| | | <testcase name="getTestCaseName('schedule export-ldif task for immediate execution in synchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'exportLdif'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'ldifFile' : '%s/tasks/export_synchronous' % logsRemoteDataDir, |
| | | 'backEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | |
| | | <message>'--- Check log files ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'export_synchronous' |
| | | } |
| | | </call> |
| | | <!-- check the export ldif file has been created--> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <call function="'testFailed'"/> |
| | | <else> |
| | | <call function="'testPassed'"/> |
| | | <call function="'testPassed'"/> |
| | | </else> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend export Tests |
| | | #@TestName Backend: export: LDIF Default |
| | | #@TestID LDIF Default |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule export-ldif task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'exportLdif'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'ldifFile' : '%s/tasks/export_schedule_asynchronous' % logsRemoteDataDir, |
| | | 'startTask' : '20061212000000', |
| | | 'backEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | <message>'--- Check log files export_asynchronous ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'export_schedule_asynchronous' |
| | | } |
| | | </call> |
| | | |
| | | <!-- check the export ldif file has been created--> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <call function="'testFailed'"/> |
| | | <testcase name="getTestCaseName('schedule export-ldif task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'exportLdif'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'ldifFile' : '%s/tasks/export_schedule_asynchronous' % logsRemoteDataDir, |
| | | 'startTask' : '20061212000000', |
| | | 'backEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | <message>'--- Check log files export_asynchronous ---'</message> |
| | | <call function="'listFolder'"> |
| | | { 'location' : '%s' % (STAF_REMOTE_HOSTNAME), |
| | | 'foldername' : '%s/tasks' % logsRemoteDataDir, |
| | | 'filename' : 'export_schedule_asynchronous' |
| | | } |
| | | </call> |
| | | |
| | | <!-- check the export ldif file has been created--> |
| | | <if expr="len(cmdResult) == 0"> |
| | | <call function="'testFailed'"/> |
| | | <else> |
| | | <call function="'testPassed'"/> |
| | | <call function="'testPassed'"/> |
| | | </else> |
| | | </if> |
| | | |
| | | |
| | | <call function="'RestartDs'"> |
| | | { 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | </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> |
| | | |
| | | |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </block> |
| | | </function> |
| | | } |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </block> |
| | | </function> |
| | | </stax> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | ! --> |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="import-ldif"/> |
| | | <function name="import-ldif" scope="local"> |
| | | <block name="STAXCurrentFunction"> |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentFunction |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | |
| | | <!--- Test Suite information |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentFunction |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Tasks |
| | | #@TestSuitePurpose Verify that the basic import functionality is working in mode task |
| | | #@TestSuiteID Import Tests |
| | |
| | | --> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: LDIF Default |
| | | #@TestID LDIF Default |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule import-ldif task for immediate execution in synchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsLdifFile' : '%s/tasks/import.ldif' % logsRemoteDataDir, |
| | | 'dsAppend' : ' ', |
| | | 'dsBackEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | <!-- Check data are imported --> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,dc=example,dc=com', |
| | | 'uid=tmorris, dc=example,dc=com'], |
| | | 'startDS' : 'False' |
| | | } |
| | | </call> |
| | | |
| | | <!-- Delete entries --> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=scarter,dc=example,dc=com' } |
| | | </call> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=tmorris,dc=example,dc=com' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <testcase name="getTestCaseName('schedule import-ldif task for immediate execution in synchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsLdifFile' : '%s/tasks/import.ldif' % logsRemoteDataDir, |
| | | 'dsAppend' : ' ', |
| | | 'dsBackEnd' : 'userRoot'} |
| | | </call> |
| | | |
| | | <!-- Check data are imported --> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,dc=example,dc=com', |
| | | 'uid=tmorris, dc=example,dc=com'], |
| | | 'startDS' : 'False' |
| | | } |
| | | </call> |
| | | |
| | | <!-- Delete entries --> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=scarter,dc=example,dc=com' } |
| | | </call> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=tmorris,dc=example,dc=com' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: LDIF Default |
| | | #@TestID LDIF Default |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule import-ldif task for immediate execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsLdifFile' : '%s/tasks/import.ldif' % logsRemoteDataDir, |
| | | 'dsAppend' : ' ', |
| | | 'startTask' : '0', |
| | | 'dsBackEnd' : 'userRoot'} |
| | | </call> |
| | | <call function="'Sleep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'sleepForMilliSeconds' : 90000 } |
| | | </call> |
| | | |
| | | <!-- Check data are imported --> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,dc=example,dc=com', |
| | | 'uid=tmorris, dc=example,dc=com'], |
| | | 'startDS' : 'False' |
| | | } |
| | | </call> |
| | | |
| | | <!-- Delete entries --> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=scarter,dc=example,dc=com' } |
| | | </call> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=tmorris,dc=example,dc=com' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <testcase name="getTestCaseName('schedule import-ldif task for immediate execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsLdifFile' : '%s/tasks/import.ldif' % logsRemoteDataDir, |
| | | 'dsAppend' : ' ', |
| | | 'startTask' : '0', |
| | | 'dsBackEnd' : 'userRoot'} |
| | | </call> |
| | | <call function="'Sleep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'sleepForMilliSeconds' : 90000 } |
| | | </call> |
| | | |
| | | <!-- Check data are imported --> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,dc=example,dc=com', |
| | | 'uid=tmorris, dc=example,dc=com'], |
| | | 'startDS' : 'False' |
| | | } |
| | | </call> |
| | | |
| | | <!-- Delete entries --> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=scarter,dc=example,dc=com' } |
| | | </call> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=tmorris,dc=example,dc=com' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend Import Tests |
| | | #@TestName Backend: Import: LDIF Default |
| | | #@TestID LDIF Default |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule import-ldif task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsLdifFile' : '%s/tasks/import.ldif' % logsRemoteDataDir, |
| | | 'dsAppend' : ' ', |
| | | 'startTask' : '20061212000000', |
| | | 'dsBackEnd' : 'userRoot'} |
| | | </call> |
| | | <call function="'Sleep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'sleepForMilliSeconds' : 90000 } |
| | | </call> |
| | | |
| | | <!-- Check data are imported --> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,dc=example,dc=com', |
| | | 'uid=tmorris, dc=example,dc=com'], |
| | | 'startDS' : 'False' |
| | | } |
| | | </call> |
| | | |
| | | <!-- Delete entries --> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=scarter,dc=example,dc=com' } |
| | | </call> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=tmorris,dc=example,dc=com' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </block> |
| | | </function> |
| | | <testcase name="getTestCaseName('schedule import-ldif task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsLdifFile' : '%s/tasks/import.ldif' % logsRemoteDataDir, |
| | | 'dsAppend' : ' ', |
| | | 'startTask' : '20061212000000', |
| | | 'dsBackEnd' : 'userRoot'} |
| | | </call> |
| | | <call function="'Sleep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'sleepForMilliSeconds' : 90000 } |
| | | </call> |
| | | |
| | | <!-- Check data are imported --> |
| | | <call function="'checkImport'"> |
| | | { 'expectedEntries' : ['uid=scarter,dc=example,dc=com', |
| | | 'uid=tmorris, dc=example,dc=com'], |
| | | 'startDS' : 'False' |
| | | } |
| | | </call> |
| | | |
| | | <!-- Delete entries --> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=scarter,dc=example,dc=com' } |
| | | </call> |
| | | <call function="'DeleteEntry'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'uid=tmorris,dc=example,dc=com' } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </block> |
| | | </function> |
| | | </stax> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | ! --> |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="restart_db"/> |
| | | <function name="restart_db" scope="local"> |
| | | <block name="STAXCurrentFunction"> |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentFunction |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | |
| | | <!--- Test Suite information |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentFunction |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Tasks |
| | | #@TestSuitePurpose Verify that the restart functionality is working in mode task |
| | | #@TestSuiteID restart Tests |
| | |
| | | |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <!--- Test Case information |
| | | #@TestMarker Backend restart Tests |
| | | #@TestName Backend: restart |
| | | #@TestPurpose schedule a restart in task mode to be executed immedialy in asynchronous mode |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule restart task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsPort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsRestart' : ' ', |
| | | 'dsStopTime' : '20061212000000' } |
| | | </call> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'sleepForMilliSeconds' : 10000 } |
| | | </call> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : DIRECTORY_INSTANCE_SFX, |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsScope' : 'base', |
| | | 'expectedRC' : 0 } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <testcase name="getTestCaseName('schedule restart task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsPort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsRestart' : ' ', |
| | | 'dsStopTime' : '20061212000000' } |
| | | </call> |
| | | |
| | | <call function="'Sleep'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'sleepForMilliSeconds' : 10000 } |
| | | </call> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : DIRECTORY_INSTANCE_SFX, |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsScope' : 'base', |
| | | 'expectedRC' : 0 } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend stop Tests |
| | | #@TestName Backend: stop |
| | | #@TestPurpose schedule a stop in task mode to be executed immedialy in asynchronous mode |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule stop server task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsPort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsStopTime' : '20061212000000' } |
| | | </call> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : DIRECTORY_INSTANCE_SFX, |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsScope' : 'base', |
| | | 'expectedRC' : 91 } |
| | | </call> |
| | | |
| | | <!--- Start DS --> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </block> |
| | | </function> |
| | | <testcase name="getTestCaseName('schedule stop server task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'StopDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsPort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN, |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'dsStopTime' : '20061212000000' } |
| | | </call> |
| | | |
| | | <call function="'SearchObject'"> |
| | | { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : DIRECTORY_INSTANCE_SFX, |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'dsScope' : 'base', |
| | | 'expectedRC' : 91 } |
| | | </call> |
| | | |
| | | <!--- Start DS --> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </block> |
| | | </function> |
| | | </stax> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | ! --> |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="restore_db"/> |
| | | <function name="restore_db" scope="local"> |
| | | <block name="STAXCurrentFunction"> |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentFunction |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | |
| | | <!--- Test Suite information |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['suite']=STAXCurrentFunction |
| | | </script> |
| | | <call function="'testSuite_Preamble'" /> |
| | | |
| | | |
| | | <!--- Test Suite information |
| | | #@TestSuiteName Tasks |
| | | #@TestSuitePurpose Verify that the restore functionality is working in mode task |
| | | #@TestSuiteID restore Tests |
| | |
| | | --> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <!--- Test Case information |
| | | #@TestMarker Backend restore Tests |
| | | #@TestName Backend: restore |
| | | #@TestID LDIF Default |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule restore task for immediate execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | |
| | | <call function="'restore'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'backupDir' : '%s/tasks/backup_asynchronous' % logsRemoteDataDir, |
| | | 'startTask' : '0'} |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <testcase name="getTestCaseName('schedule restore task for immediate execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | |
| | | <call function="'restore'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'backupDir' : '%s/tasks/backup_asynchronous' % logsRemoteDataDir, |
| | | 'startTask' : '0'} |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend restore |
| | | #@TestName Backend: restore |
| | | #@TestPurpose schedule a restore in task mode to be executed immedialy in synchronous mode |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule restore task for immediate execution in synchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'restore'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'backupDir' : '%s/tasks/backup_synchronous' % logsRemoteDataDir} |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | <testcase name="getTestCaseName('schedule restore task for immediate execution in synchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | |
| | | <call function="'restore'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'backupDir' : '%s/tasks/backup_synchronous' % logsRemoteDataDir} |
| | | </call> |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Backend restore |
| | | #@TestName Backend: restore |
| | | #@TestID LDIF Default |
| | |
| | | #@TestResult |
| | | --> |
| | | |
| | | <testcase name="getTestCaseName('schedule restore task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <script> |
| | | mydate=strftime("%Y%m%d%H%M%S",localtime()) |
| | | </script> |
| | | |
| | | |
| | | |
| | | <call function="'restore'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'startTask' : '%s' % mydate, |
| | | 'backupDir' : '%s/tasks/backup_schedule_asynchronous' % logsRemoteDataDir |
| | | } |
| | | </call> |
| | | |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </block> |
| | | </function> |
| | | <testcase name="getTestCaseName('schedule restore task for scheduled execution in asynchronous mode')"> |
| | | <sequence> |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <script> |
| | | mydate=strftime("%Y%m%d%H%M%S",localtime()) |
| | | </script> |
| | | |
| | | |
| | | |
| | | <call function="'restore'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | | 'dsInstancePort' : DIRECTORY_INSTANCE_PORT, |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, |
| | | 'startTask' : '%s' % mydate, |
| | | 'backupDir' : '%s/tasks/backup_schedule_asynchronous' % logsRemoteDataDir |
| | | } |
| | | </call> |
| | | |
| | | |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <call function="'testSuite_Postamble'" /> |
| | | </sequence> |
| | | </block> |
| | | </function> |
| | | </stax> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Portions Copyright 2007 Sun Microsystems, Inc. |
| | | ! --> |
| | | ! --> |
| | | <stax> |
| | | |
| | | |
| | | <defaultcall function="setup"/> |
| | | <function name="setup"> |
| | | <sequence> |
| | | <block name="'setup'"> |
| | | <sequence> |
| | | <block name="'Block Create DS Topology'"> |
| | | <!-- Create the topology necessary to the test group/suite --> |
| | | <sequence> |
| | | <sequence> |
| | | <block name="'Block Create DS Topology'"> |
| | | <!-- Create the topology necessary to the test group/suite --> |
| | | <sequence> |
| | | <message> |
| | | 'Create DS topology as described in config.py' |
| | | 'Create DS topology as described in config.py' |
| | | </message> |
| | | <call function="'createTopology'"> |
| | | { 'initialiseInstance' : True } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | <!--- End Block Create DS Topology --> |
| | | </block> |
| | | <block name="'Block DS Process Active'"> |
| | | <!--- Start DS --> |
| | | <sequence> |
| | | <message> |
| | | 'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT) |
| | | </message> |
| | | |
| | | <!--- Start DS --> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsFilter' : 'objectclass=*' } |
| | | </call> |
| | | |
| | | </sequence> |
| | | <!--- End Block DS Process Active --> |
| | | </block> |
| | | </sequence> |
| | | <call function="'createTopology'"> |
| | | { 'initialiseInstance' : True } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | <!--- End Block Create DS Topology --> |
| | | </block> |
| | | <block name="'Block DS Process Active'"> |
| | | <!--- Start DS --> |
| | | <sequence> |
| | | <message> |
| | | 'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT) |
| | | </message> |
| | | |
| | | <!--- Start DS --> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 5 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | <call function="'ldapSearchWithScript'"> |
| | | { 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , |
| | | 'dsBaseDN' : 'dc=com' , |
| | | 'dsFilter' : 'objectclass=*' } |
| | | </call> |
| | | |
| | | </sequence> |
| | | <!--- End Block DS Process Active --> |
| | | </block> |
| | | </sequence> |
| | | </block> |
| | | </sequence> |
| | | </function> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | ! --> |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_tasks"/> |
| | | <function name="main_tasks"> |
| | | <sequence> |
| | | <block name="'tasks'"> |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['group']='tasks' |
| | | </script> |
| | | <sequence> |
| | | <script> |
| | | CurrentTestPath['group']='tasks' |
| | | </script> |
| | | |
| | | <call function="'testGroup_Preamble'" /> |
| | | <iterate var="_test" in="['setup','restart_db','export-ldif','import-ldif','backup_db','restore_db','cleanup']" > |