| | |
| | | ! 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> |