allow runCommand to manage return code (call of checktestRC()) and remove the call of checktestRC in functions that use runCommand ; change setOSvariables to getOSvariables call in environment.xml
| | |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXReason[0][1] |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | |
| | | Help option |
| | | </function-arg-description> |
| | | <function-arg-property name="help" value="option"/> |
| | | </function-arg-def> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | 'name' : 'Setup DS Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'path' : dsPath |
| | | 'path' : dsPath, |
| | | 'expectedRC': 'noCheck' |
| | | } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | Directory server build information |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="option"/> |
| | | </function-arg-def> |
| | | </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> |
| | |
| | | { 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | startRC=RC |
| | | startResult=STAXResult |
| | | </script> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : startRC , |
| | | 'result' : startResult } |
| | | </call> |
| | | |
| | | <return>startResult</return> |
| | | <return>STAXResult</return> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | </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-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | { 'location' : location, |
| | | 'name' : 'Stop DS Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | <call function="'Sleep'"> |
| | | { 'sleepForMilliSeconds' : 3000 } |
| | | </call> |
| | |
| | | Optional extra parameters for specific test cases |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </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> |
| | |
| | | { 'location' : location, |
| | | 'name' : 'Offline Import', |
| | | 'command' : '%s/import-ldif%s' % (dsBinPath,fileExt), |
| | | 'arguments' : '-l %s -n %s %s' % (ldifFile,backEnd,extraParams) |
| | | 'arguments' : '-l %s -n %s %s' % (ldifFile,backEnd,extraParams), |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | importRC=RC |
| | | importResult=STAXResult |
| | | </script> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : importRC , |
| | | 'result' : importResult } |
| | | </call> |
| | | <return>importRC</return> |
| | | <return>RC</return> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | Start time for task |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | </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> |
| | |
| | | { 'location' : location, |
| | | 'name' : 'Offline Import Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : RC , |
| | | 'result' : STAXResult } |
| | | </call> |
| | | |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | 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> |
| | |
| | | { 'location' : location, |
| | | 'name' : 'Export Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | <message> |
| | | '%s %s' % (STAFCmd,STAFCmdParams) |
| | | </message> |
| | | |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | </return> |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | 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> |
| | |
| | | { 'location' : location, |
| | | 'name' : 'Backup Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | } |
| | | </call> |
| | | |
| | | <return> |
| | | STAXReason |
| | | </return> |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | 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> |
| | |
| | | { 'location' : location, |
| | | 'name' : 'Restore Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | </call> |
| | | |
| | | <return> |
| | | STAXReason |
| | | </return> |
| | | </sequence> |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | | |
| | | <!-- Restore Task Function --> |
| | |
| | | Sleep time in milliseconds between ldap check tries |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | </function-arg-def> |
| | | |
| | | </function-map-args> |
| | | |
| | |
| | | Help option |
| | | </function-arg-description> |
| | | <function-arg-property name="help" value="option"/> |
| | | </function-arg-def> |
| | | </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> |
| | |
| | | 'name' : 'Status Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'path' : dsPath |
| | | 'path' : dsPath, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | CmdRC=RC |
| | | CmdResult=STAXResult |
| | | </script> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : CmdRC , |
| | | 'result' : CmdResult } |
| | | </call> |
| | | |
| | | <return>CmdResult</return> |
| | | |
| | | <return>STAXResult</return> |
| | | |
| | | </sequence> |
| | | |
| | |
| | | Help option |
| | | </function-arg-description> |
| | | <function-arg-property name="help" value="option"/> |
| | | </function-arg-def> |
| | | </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> |
| | |
| | | 'name' : 'Base 64 %s Script' % subcommand, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'path' : dsPath |
| | | 'path' : dsPath, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | CmdRC=RC |
| | | CmdResult=STAXResult |
| | | </script> |
| | | |
| | | <call function="'checkRC'"> |
| | | { 'returncode' : CmdRC , |
| | | 'result' : CmdResult } |
| | | </call> |
| | | |
| | | <return>CmdResult</return> |
| | | |
| | | <return>STAXResult</return> |
| | | |
| | | </sequence> |
| | | </function> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'Modify dsconfig object', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <if expr="expectedRC != 'noCheck'"> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason , |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | </if> |
| | | |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'Get dsconfig object', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult[0][1] |
| | | </script> |
| | | <if expr="expectedAttributeValue == 'none'"> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | <if expr="expectedAttributeValue != 'none'"> |
| | | <call function="'checktestString'"> |
| | | { 'expectedString' : expectedAttributeValue, |
| | | 'returnString' : STAXReason |
| | | } |
| | | </call> |
| | | <else> |
| | | <call function="'checktestString'"> |
| | | { 'expectedString' : expectedAttributeValue, |
| | | 'returnString' : STAXReason |
| | | } |
| | | </call> |
| | | </else> |
| | | </if> |
| | | <return> |
| | | STAXReason |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'execute dsconfig subcommand', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | 'expectedRC' : expectedRC |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | 'expectedRC' : expectedRC |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'Modify dsconfig object', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason , |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | 'expectedRC' : expectedRC |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | </script> |
| | | <call function="'runCommand'"> |
| | | { 'name' : 'Modify dsconfig object', |
| | | { 'name' : 'Modify dsconfig object', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | 'expectedRC' : expectedRC |
| | | } |
| | | </call> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <function-arg-property-data type="choice" value="'substring'" /> |
| | | </function-arg-property> |
| | | </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> |
| | | <!-- Local variables --> |
| | |
| | | { 'name' : 'dsconfig addIndex', |
| | | 'location' : location, |
| | | 'command' : dsconfigCmd, |
| | | 'arguments' : dsconfigParams |
| | | 'arguments' : dsconfigParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </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> |
| | | <!-- Local variables --> |
| | |
| | | { 'name' : 'dsconfig modifyIndex', |
| | | 'location' : location, |
| | | 'command' : dsconfigCmd, |
| | | 'arguments' : dsconfigParams |
| | | 'arguments' : dsconfigParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </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> |
| | | <!-- Local variables --> |
| | |
| | | { 'name' : 'dsconfig removeIndex', |
| | | 'location' : location, |
| | | 'command' : dsconfigCmd, |
| | | 'arguments' : dsconfigParams |
| | | 'arguments' : dsconfigParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'Modify dsconfig object', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'List synchronization providers', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'Modify dsconfig object', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'Modify dsconfig object', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <sequence> |
| | | |
| | | <!-- Resolve any OS related variables --> |
| | | <call function="'setOSvariables'"> |
| | | <call function="'getOSvariables'"> |
| | | { 'hostname' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | |
| | | |
| | | DSCONFIG = 'dsconfig' |
| | | DSREPLICATION = 'dsreplication' |
| | | NO_CHECK = 'noCheck' |
| | | |
| | | AdminUID = 'admin' |
| | | AdminPswd = 'admin' |
| | |
| | | <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> |
| | |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : mylocation, |
| | | 'name' : 'Add Entry From LDIF', |
| | | 'verbose' : verbose |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'expectedRC' : expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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> |
| | |
| | | { 'name' : 'LDAP Modify Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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> |
| | |
| | | { 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'name' : 'Modify Entry from ldif file' |
| | | 'name' : 'Modify Entry from ldif file', |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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-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 |
| | | 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> |
| | |
| | | { 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location, |
| | | 'name' : 'ldapsearch' |
| | | 'name' : 'ldapsearch', |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <if expr="expectedRC != 'noCheck'"> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason , |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | </if> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | expected value. Default is 0 |
| | | Expected return code value. Default value is 0 |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | |
| | | { 'name' : 'Search Base Object No Password', |
| | | 'command' : '%s/ldapsearch%s' % (dsBinPath,fileExt), |
| | | 'arguments' : '-h %s -p %s -D "%s" %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,extraParams,dsBaseDN,dsFilter), |
| | | 'location' : location |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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> |
| | |
| | | { 'name' : 'Anonymous Search Base Object', |
| | | 'location' : location, |
| | | 'command' : '%s/ldapsearch%s' % (dsBinPath,fileExt), |
| | | 'arguments' : '-h %s -p %s %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,extraParams,dsBaseDN,dsFilter) |
| | | 'arguments' : '-h %s -p %s %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,extraParams,dsBaseDN,dsFilter), |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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> |
| | |
| | | { 'name' : 'LDAP Delete Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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> |
| | |
| | | { 'name' : 'Delete Object', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | |
| | |
| | | <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> |
| | |
| | | { 'name' : 'LDAP Compare Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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> |
| | |
| | | { 'name' : 'Compare Object', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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> |
| | |
| | | { 'name' : 'LDAP Password Modify Script', |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'location' : location |
| | | 'location' : location, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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="string"/> |
| | | </function-arg-def> |
| | |
| | | |
| | | STAFCmd='modifyAnAttribute' |
| | | </script> |
| | | |
| | | <if expr="suppressTestStatus == '1'"> |
| | | <script> |
| | | expectedRC = 'noCheck' |
| | | </script> |
| | | </if> |
| | | |
| | | <call function="'runCommand'" > |
| | | { 'name' : 'Modify An Attribute value', |
| | | 'command' : '%s/bin/java' % JAVA_HOME, |
| | | 'arguments' : '%s %s' % (STAFCmd,STAFCmdParams), |
| | | 'location' : location, |
| | | 'path' : '%s/../%s' % (dsPath,relativeJavaDir), |
| | | 'env' : ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME,'CLASSPATH=%s/../%s' % (dsPath,relativeJavaDir)] |
| | | 'env' : ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME,'CLASSPATH=%s/../%s' % (dsPath,relativeJavaDir)], |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | |
| | | <if expr="suppressTestStatus != '1'"> |
| | | <sequence> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | </sequence> |
| | | </if> |
| | | <return> |
| | | [STAXCode,STAXReason] |
| | | [RC,STAXResult] |
| | | </return> |
| | | </sequence> |
| | | |
| | |
| | | <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="string"/> |
| | | </function-arg-def> |
| | |
| | | </function-arg-def> |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | expected value. Default is 0 |
| | | Expected return code value. Default value is 0 |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | |
| | | 'arguments' : '%s %s' % (STAFCmd,STAFCmdParams), |
| | | 'location' : location, |
| | | 'env' : ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME,'CLASSPATH=%s/../%s' % (dsPath,relativeJavaDir)], |
| | | 'path' : '%s/../%s' % (dsPath,relativeJavaDir) |
| | | 'path' : '%s/../%s' % (dsPath,relativeJavaDir), |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | <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> |
| | |
| | | 'arguments' : '%s %s' % (STAFCmd,STAFCmdParams), |
| | | 'location' : location, |
| | | 'env' : ['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME,'CLASSPATH=%s/../%s' % (dsPath,relativeJavaDir)], |
| | | 'path' : '%s/../%s' % (dsPath,relativeJavaDir) |
| | | 'path' : '%s/../%s' % (dsPath,relativeJavaDir), |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | The storetype. can be JKS or PKCS12 |
| | | </function-arg-description> |
| | | </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> |
| | | <!-- Local variables --> |
| | |
| | | 'location' : location, |
| | | 'command' : '%s/bin/keytool' % JAVA_HOME, |
| | | 'arguments' : '-genkey -alias %s -keyalg rsa -dname "%s" -keystore %s -storepass %s -keypass %s -storetype %s ' % (certAlias,dname,keystore,storepass,keypass,storetype), |
| | | 'path' : dsConfigPath |
| | | 'path' : dsConfigPath, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason |
| | | } |
| | | </call> |
| | | <return>STAXReason</return> |
| | | <return>STAXResult</return> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | The storetype. can be JKS or PKCS12 |
| | | </function-arg-description> |
| | | </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> |
| | | <!-- Local variables --> |
| | |
| | | 'location' : location, |
| | | 'command' : '%s/bin/keytool' % JAVA_HOME, |
| | | 'arguments' : '-selfcert -alias %s -keystore "%s" -keypass "%s" -storepass "%s" -storetype "%s" ' % (certAlias,keystore,keypass,storepass,storetype), |
| | | 'path' : dsConfigPath |
| | | 'path' : dsConfigPath, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason |
| | | } |
| | | </call> |
| | | <return>STAXReason</return> |
| | | <return>STAXResult</return> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | Output file to store certificate |
| | | </function-arg-description> |
| | | </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> |
| | |
| | | 'location' : location, |
| | | 'command' : '%s/bin/keytool' % JAVA_HOME, |
| | | 'arguments' : '-export -alias %s -file %s -keystore "%s" -storepass "%s" -storetype %s %s' % (certAlias,outputfile,keystore,storepass,storetype,STAFCmdParams), |
| | | 'path' : dsConfigPath |
| | | 'path' : dsConfigPath, |
| | | 'expectedRC' : expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason } |
| | | </call> |
| | | <return>STAXReason</return> |
| | | <return>STAXResult</return> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | Certificate to import |
| | | </function-arg-description> |
| | | </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> |
| | | |
| | |
| | | 'location' : location, |
| | | 'command' : '%s/bin/keytool' % JAVA_HOME, |
| | | 'arguments' : '-import -alias %s -file %s -keystore "%s" -storepass "%s" -storetype %s -noprompt' % (certAlias,inputfile,keystore,storepass,storetype), |
| | | 'path' : dsConfigPath |
| | | 'path' : dsConfigPath, |
| | | 'expectedRC' : expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason |
| | | } |
| | | </call> |
| | | <return>STAXReason</return> |
| | | <return>STAXResult</return> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | fingerprint. can be MD5 or SHA1 |
| | | </function-arg-description> |
| | | </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> |
| | | <!-- Local variables --> |
| | |
| | | 'location' : location, |
| | | 'command' : '%s/bin/keytool' % JAVA_HOME, |
| | | 'arguments' : ' -list -v -keystore "%s" -storepass "%s" -alias "%s"' % (keystore,storepass,certAlias), |
| | | 'path' : dsConfigPath |
| | | 'path' : dsConfigPath, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason |
| | | } |
| | | </call> |
| | | <return>STAXReason</return> |
| | | <return>STAXResult</return> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="help" 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-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <if expr="STAXCode != 0"> |
| | | <sequence> |
| | | <message level="'error'"> |
| | | 'make-ldif failed (Code=%s,Reason=%s).' % (STAXCode,STAXReason) |
| | | </message> |
| | | </sequence> |
| | | </if> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode , |
| | | 'result' : STAXReason } |
| | | </call> |
| | | |
| | | <return>[STAXCode, STAXReason]</return> |
| | | <return>[RC, STAXResult]</return> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="help" 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-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <!-- Build the Command --> |
| | |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return>STAXResult</return> |
| | |
| | | [ 'uid', 'telephonenumber' ] |
| | | </function-arg-description> |
| | | </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> |
| | |
| | | { 'name' : 'rebuild index', |
| | | 'location' : location, |
| | | 'command' : _cmd, |
| | | 'arguments' : _args |
| | | 'arguments' : _args, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return>STAXResult</return> |
| | |
| | | Specify a list of attributes to trigger index verification on |
| | | </function-arg-description> |
| | | </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> |
| | |
| | | { 'name' : 'verify index', |
| | | 'location' : location, |
| | | 'command' : _cmd, |
| | | 'arguments' : _args |
| | | 'arguments' : _args, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return>STAXResult</return> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="boolean" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'Enable Replication', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'Initialize Replication', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | { 'name' : 'Disable Replication', |
| | | 'location' : location, |
| | | 'command' : STAFCmd, |
| | | 'arguments' : STAFCmdParams |
| | | } |
| | | </call> |
| | | <script> |
| | | STAXCode=RC |
| | | STAXReason=STAXResult |
| | | </script> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | | 'expected' : expectedRC |
| | | 'arguments' : STAFCmdParams, |
| | | 'expectedRC': expectedRC |
| | | } |
| | | </call> |
| | | <return> |
| | | STAXReason |
| | | STAXResult |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | | <if expr="expected == NO_CHECK"> |
| | | <if expr="expected == 'noCheck'"> |
| | | <return/> |
| | | </if> |
| | | <if expr="returncode == expected"> |
| | |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <if expr="expected == NO_CHECK"> |
| | | <if expr="expected == 'noCheck'"> |
| | | <return/> |
| | | </if> |
| | | <if expr="returncode == expected"> |
| | |
| | | </sequence> |
| | | </function> |
| | | |
| | | <function name="setOSvariables"> |
| | | <function name="getOSvariables"> |
| | | <function-prolog> |
| | | Set OS related variables |
| | | Get OS related variables |
| | | </function-prolog> |
| | | <function-map-args> |
| | | <function-arg-def name="hostname" type="required"> |
| | |
| | | The duration that the process is allowed to run |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | <function-arg-def name="verbose" default="True" type="optional"> |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | A boolean (use True or False here, case matters) to output the |
| | | outputs of the command |
| | | Expected return code value. Default value is 0. |
| | | Wildcard 'noCheck' to not check the RC |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | |
| | | </message> |
| | | |
| | | <block name="'%s:Wrapper for %s' % (_id,re.compile('\..*$').sub('',os.path.basename(command)))"> |
| | | |
| | | <process name="name"> |
| | | <location>location</location> |
| | | <command>command</command> |
| | |
| | | <stderr mode="'stdout'"/> |
| | | <returnstdout/> |
| | | </process> |
| | | |
| | | </block> |
| | | |
| | | <if expr="verbose == True"> |
| | | <message level="'info'"> |
| | | '%s: Command returned:\n%s' % (_id,STAXResult[0][1]) |
| | | </message> |
| | | <script> |
| | | cmdRC = RC |
| | | cmdOutput = STAXResult |
| | | </script> |
| | | <if expr="expectedRC != 'noCheck'"> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : cmdRC, |
| | | 'result' : cmdOutput[0][1], |
| | | 'expected' : expectedRC |
| | | } |
| | | </call> |
| | | </if> |
| | | <script> |
| | | def dig(var): |
| | |
| | | return 'could not evaluate the following component: %s' % var |
| | | |
| | | if stripOutput == True: |
| | | STAXResult=dig(STAXResult) |
| | | cmdOutput=dig(cmdOutput) |
| | | </script> |
| | | <return> |
| | | STAXResult |
| | | cmdOutput |
| | | </return> |
| | | </sequence> |
| | | </function> |