| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="option"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | |
| | | </function-map-args> |
| | | <sequence> |
| | |
| | | 'dsPort' : dsInstancePort, |
| | | 'dsBindDn' : dsInstanceDn, |
| | | 'dsBindPswd' : dsInstancePswd, |
| | | 'dsTaskLdif' : taskLdif } |
| | | 'dsTaskLdif' : taskLdif, |
| | | 'expectedRC' : expectedRC |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | |
| | | 'noOfLoops' : numLdapCheckTries, |
| | | 'sleepMilliSeconds' : sleepBetweenLdapCheckTries } |
| | | </call> |
| | | <message>'Check CheckLdapTask returns RC=0'</message> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </if> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="filename"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | STAFCmdResult=STAXResult |
| | | </script> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : STAFCmdRC , |
| | | 'result' : STAFCmdResult } |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAFCmdRC, |
| | | 'result' : STAFCmdResult, |
| | | 'expected' : expectedRC |
| | | } |
| | | </call> |
| | | |
| | | <return>[STAFCmdRC, STAFCmdResult[0][1]]</return> |
| | |
| | | <!-- Search for task status --> |
| | | |
| | | <call function="'runCommand'"> |
| | | { 'name' : 'Search On line Import Task', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : myLocation |
| | | { 'name' : 'Search On line Import Task', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : myLocation, |
| | | 'expectedRC' : 'noCheck' |
| | | } |
| | | </call> |
| | | |
| | |
| | | </message> |
| | | </else> |
| | | </if> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : STAFCmdRC , |
| | | 'result' : STAFCmdResult } |
| | | </call> |
| | | |
| | | <message> |
| | | 'Sleeping for %s ms' % sleepMilliSeconds |