| | |
| | | { 'functionName' : 'checktestString' , |
| | | 'functionMessage' : 'Check userCertificate attribute is returned.' , |
| | | 'functionException' : 'Utils.CheckStringException' , |
| | | 'functionArguments' : { 'expectedString' : 'userCertificate;binary' , |
| | | 'functionArguments' : { 'expectedString' : 'usercertificate;binary' , |
| | | 'returnString' : _functionResult } |
| | | } |
| | | </call> |
| | |
| | | { 'functionName' : 'checktestString' , |
| | | 'functionMessage' : 'Check userCertificate attribute is returned.' , |
| | | 'functionException' : 'Utils.CheckStringException' , |
| | | 'functionArguments' : { 'expectedString' : 'userCertificate;binary' , |
| | | 'functionArguments' : { 'expectedString' : 'usercertificate;binary' , |
| | | 'returnString' : _functionResult } |
| | | } |
| | | </call> |
| | |
| | | { 'functionName' : 'checktestString' , |
| | | 'functionMessage' : 'Check userCertificate attribute is returned.' , |
| | | 'functionException' : 'Utils.CheckStringException' , |
| | | 'functionArguments' : { 'expectedString' : 'userCertificate;binary' , |
| | | 'functionArguments' : { 'expectedString' : 'usercertificate;binary' , |
| | | 'returnString' : _functionResult } |
| | | } |
| | | </call> |
| | |
| | | { 'functionName' : 'checktestString' , |
| | | 'functionMessage' : 'Check userCertificate attribute is returned.' , |
| | | 'functionException' : 'Utils.CheckStringException' , |
| | | 'functionArguments' : { 'expectedString' : 'userCertificate;binary' , |
| | | 'functionArguments' : { 'expectedString' : 'usercertificate;binary' , |
| | | 'returnString' : _functionResult } |
| | | } |
| | | </call> |
| | |
| | | { 'functionName' : 'checktestString' , |
| | | 'functionMessage' : 'Check userCertificate attribute is returned.' , |
| | | 'functionException' : 'Utils.CheckStringException' , |
| | | 'functionArguments' : { 'expectedString' : 'userCertificate;binary' , |
| | | 'functionArguments' : { 'expectedString' : 'usercertificate;binary' , |
| | | 'returnString' : _functionResult } |
| | | } |
| | | </call> |
| | |
| | | { 'functionName' : 'checktestString' , |
| | | 'functionMessage' : 'Check userCertificate attribute is returned.' , |
| | | 'functionException' : 'Utils.CheckStringException' , |
| | | 'functionArguments' : { 'expectedString' : 'userCertificate;binary' , |
| | | 'functionArguments' : { 'expectedString' : 'usercertificate;binary' , |
| | | 'returnString' : _functionResult } |
| | | } |
| | | </call> |
| | |
| | | { 'functionName' : 'checktestString' , |
| | | 'functionMessage' : 'Check userCertificate attribute is returned.' , |
| | | 'functionException' : 'Utils.CheckStringException' , |
| | | 'functionArguments' : { 'expectedString' : 'userCertificate;binary' , |
| | | 'functionArguments' : { 'expectedString' : 'usercertificate;binary' , |
| | | 'returnString' : _functionResult } |
| | | } |
| | | </call> |
| | |
| | | { 'functionName' : 'checktestString' , |
| | | 'functionMessage' : 'Check userCertificate attribute is returned.' , |
| | | 'functionException' : 'Utils.CheckStringException' , |
| | | 'functionArguments' : { 'expectedString' : 'userCertificate;binary' , |
| | | 'functionArguments' : { 'expectedString' : 'usercertificate;binary' , |
| | | 'returnString' : _functionResult } |
| | | } |
| | | </call> |
| | |
| | | 'dsBaseDN' : 'cn=System Info,cn=monitor', |
| | | 'dsFilter' : 'objectclass=*', |
| | | 'expectedRC' : 0 , |
| | | 'knownIssue' : '2619' } |
| | | 'knownIssue' : '2873' } |
| | | </call> |
| | | |
| | | <message>'-- Disable the System Info monitor provider --'</message> |
| | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : 'Account Expiration Time:' } |
| | | </call> |
| | | </call> |
| | | |
| | | <message> |
| | | <message> |
| | | 'Security: Account Expiration: verify manage-account %s' % msg3 |
| | | </message> |
| | | |
| | |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { 'returnString' : returnString , |
| | | 'expectedString' : '%s 8926' % msg5 } |
| | | </call> |
| | | |
| | | <script> |
| | | expirationTime = returnString.split(':')[1].strip() |
| | | |
| | | if len(expirationTime) == 9 & expirationTime.startswith('86'): |
| | | myRC = 0 |
| | | else: |
| | | myRC = 1 |
| | | </script> |
| | | |
| | | <if expr="myRC== 0"> |
| | | <sequence> |
| | | <message log="1"> |
| | | 'SUCCESS: Expiration (%s) time contains 9 digit and starts with 86' % expirationTime |
| | | </message> |
| | | <tcstatus result="'pass'"/> |
| | | </sequence> |
| | | <else> |
| | | <sequence> |
| | | <message log="1" level="'Error'"> |
| | | 'ERROR : Expiration time (%s) didn\'t match the expected expression' % expirationTime |
| | | </message> |
| | | <tcstatus result="'fail'"/> |
| | | </sequence> |
| | | </else> |
| | | </if> |
| | | |
| | | <message> |
| | | 'Security: Account Expiration: verify manage-account %s' % msg4 |
| | | </message> |
| | |
| | | msg4 = 'configuration parameter of the SNMP connection handler' |
| | | msg5 = 'is the valid path to the jdmkrt.jar file and that the' |
| | | msg6 = 'file is accessible' |
| | | msg = '%s %s %s %s %s %s' % (msg1, msg2, msg3, msg4, msg5, msg6) |
| | | msg = '%s %s %s %s %s %s' % (msg1, msg2, msg3, msg4, msg5, msg6) |
| | | </script> |
| | | |
| | | <call function="'grep'"> |
| | |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 } |
| | | </call> |
| | | |
| | | <call function="'backup'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST, |
| | |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <call function="'checktestStringNotPresent'"> |
| | | {'testString' : 'because another task already exists with the same ID' , |
| | | 'returnString' : returnString, |
| | | 'issue' : '3773'} |
| | | </call> |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 10 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | | <call function="'grep'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'filename' : '%s/%s/logs/server.out' % (DIRECTORY_INSTANCE_DIR, OPENDSNAME) , |
| | | 'testString': 'because another task already exists with the same ID' , |
| | | 'expectedRC': 1 , |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | |
| | | <call function="'testCase_Preamble'"/> |
| | | |
| | | <script> |
| | | mydate=strftime("%Y%m%d%H%M%S",localtime()) |
| | | import java.util.Calendar |
| | | import java.text.SimpleDateFormat |
| | | |
| | | cal = java.util.Calendar.getInstance() |
| | | cal.add(java.util.Calendar.SECOND,10) |
| | | |
| | | dateFormat = java.text.SimpleDateFormat("yyyyMMddHHmmss") |
| | | |
| | | mydate = dateFormat.format(cal.getTime()) |
| | | </script> |
| | | |
| | | |
| | | |
| | | <call function="'restore'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME , |
| | |
| | | |
| | | <!-- Install STAF and services --> |
| | | <target name="install"> |
| | | <echo>Installing staf, please wait...</echo> |
| | | <if> |
| | | <not> |
| | | <available file="${staf.install.dir}/bin/STAF.cfg"/> |
| | |
| | | if startTask: |
| | | STAFCmdParamsList.append('-t %s' % startTask) |
| | | |
| | | if schedulePattern: |
| | | STAFCmdParamsList.append('--recurringTask %s' % schedulePattern) |
| | | |
| | | if backupID: |
| | | STAFCmdParamsList.append('-I %s' % backupID) |
| | | |
| | | if schedulePattern: |
| | | STAFCmdParamsList.append('--recurringTask %s' % schedulePattern) |
| | | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | |
| | |
| | | if startTask: |
| | | STAFCmdParamsList.append('-t %s' % startTask) |
| | | |
| | | if backupID: |
| | | STAFCmdParamsList.append('-I %s' % backupID) |
| | | |
| | | if schedulePattern: |
| | | STAFCmdParamsList.append('--recurringTask %s' % schedulePattern) |
| | | |
| | | if backupID: |
| | | STAFCmdParamsList.append('-I %s' % backupID) |
| | | |
| | | STAFCmdParams=' '.join(STAFCmdParamsList) |
| | | |
| | | </script> |
| | |
| | | SERVICE Stax LIBRARY JSTAF \ |
| | | EXECUTE {STAF/Config/STAFRoot}/services/stax/STAX.jar \ |
| | | OPTION J2="-Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:NewSize=500m -XX:MaxNewSize=500m -XX:SurvivorRatio=6 -XX:PermSize=256m -XX:MaxPermSize=256m -Xoss1m -Xss1m" \ |
| | | OPTION JVM=${local.javahome}/bin/java |
| | | OPTION JVM=${local.javahome}/bin/java \ |
| | | PARMS "PYTHONOUTPUT JobUserLogAndMsg" "PYTHONLOGLEVEL Info" |
| | | |
| | | # EVENT SERVICE CONFIGURATION |
| | | SERVICE Event LIBRARY JSTAF \ |
| | |
| | | |
| | | # DSML SERVICE CONFIGURATION |
| | | SERVICE Dsml LIBRARY JSTAF \ |
| | | EXECUTE {STAF/Config/STAFRoot}/services/dsml/dsmlService.jar \ |
| | | EXECUTE {STAF/Config/STAFRoot}/services/DSML/dsmlService.jar \ |
| | | OPTION JVMNAME=dsmlJVM \ |
| | | OPTION J2=-Xmx512m -Xms128m \ |
| | | OPTION JVM=${local.javahome}/bin/java |
| | |
| | | WC_SSL_PORT = '9001' |
| | | WC_HOST = '${remote.hostname}' |
| | | DSML_WARNAME = '${opends.name}-DSML.war' |
| | | DSML_WARPATH = '${opends.dir}/build/package/${opends.name}-DSML.war' |
| | | DSML_WARPATH = '${opends.dir}/${opends.name}-DSML.war' |
| | | SNMP_OPENDS_JARFILE = '${opends.name}/lib/extensions/snmp-mib2605.jar' |
| | | SNMP_OPENDMK_LIBDIR = '${snmp.opendmk.lib.dir}' |
| | | SNMP_OPENDMK_JARFILE = '${snmp.opendmk.lib.dir}/jdmkrt.jar' |
| | |
| | | <script> |
| | | srcFile = '%s/logs/MACHINE/%s/GLOBAL/STAX_Job_%s_User.log' \ |
| | | % (STAFRoot,STAF_LOCAL_HOSTNAME,thisChild) |
| | | destFile = '%s/staf-logs/STAX_Job_%s_User.log' \ |
| | | destFile = '%s/staf-logs/STAX_Job_%s_User.txt' \ |
| | | % (LOGS_ROOT,thisChild) |
| | | </script> |
| | | <process name="'Saving job user logs.....'"> |