| | |
| | | </function-map-args> |
| | | <sequence> |
| | | <script> |
| | | import re |
| | | searchre = re.compile('%s' % expectedString) |
| | | </script> |
| | | |
| | |
| | | |
| | | <sequence> |
| | | <script> |
| | | import re |
| | | searchre = re.compile('%s' % testString) |
| | | </script> |
| | | <if expr='re.search(searchre, returnString) == None'> |
| | |
| | | </sequence> |
| | | </function> |
| | | |
| | | <function name="searchStringForSubstring"> |
| | | <function name="searchStringForSubstring"> |
| | | <function-prolog> |
| | | This function simply searches a string for a substring |
| | | </function-prolog> |
| | |
| | | |
| | | <sequence> |
| | | <script> |
| | | import re |
| | | searchre = re.compile(testString) |
| | | </script> |
| | | <if expr='re.search(searchre, returnString) == None'> |
| | |
| | | <return>returnCode</return> |
| | | </sequence> |
| | | </function> |
| | | |
| | | |
| | | <function name="isAlive"> |
| | | <function-prolog> |
| | | Checks that the ldap server is running |
| | |
| | | <sequence> |
| | | |
| | | <call function="'queryLogs'"> |
| | | { 'hostname' : STAXServiceMachine, |
| | | { 'location' : STAXServiceMachine, |
| | | 'logname' : 'STAX_Job_%s_User' % STAXJobID, |
| | | 'startfrom' : starttime, |
| | | 'endat' : endtime } |
| | |
| | | NewLogDir=posixpath.dirname(logfile) |
| | | </script> |
| | | |
| | | <call function="'CreateFolder'"> |
| | | { 'hostname' : STAXServiceMachine, |
| | | <call function="'createFolder'"> |
| | | { 'location' : STAXServiceMachine, |
| | | 'foldername' : NewLogDir } |
| | | </call> |
| | | |