| | |
| | | { 'phaseName' : 'verdict', |
| | | 'fileFd' : LOG_MAIN_FD } |
| | | </call> |
| | | <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" |
| | | file="'%s/phases/verdict/verdict_opends.xml' % (TESTS_DIR)"/> |
| | | |
| | | |
| | | |
| | | <!--== Check if previous phases raised some errors ==--> |
| | |
| | | fileList.append(logFile) |
| | | |
| | | cFileFd = open(logFile,'w') |
| | | # Write start tag |
| | | str = '<instance name=\"%s\"' % instance.getName() |
| | | str = '%s host=\"%s\"' % (str, instance.getHost()) |
| | | str = '%s port=\"%s\"' % (str, instance.getLDAPPort()) |
| | | str = '%s product=\"opends\">\n' % str |
| | | cFileFd.write(str) |
| | | </script> |
| | | |
| | | <if expr="instance.getProduct() == 'opends'"> |
| | | <call function="'verdictOpends'"> |
| | | <call function="'writeStartTagInstance'"> |
| | | { |
| | | 'instance' : instance, |
| | | 'instances' : topoInstances, |
| | | 'fileFd' : cFileFd |
| | | } |
| | | </call> |
| | | |
| | | |
| | | <if expr="instance.getProduct() == 'opends'"> |
| | | <sequence> |
| | | <!--== Get the list of opends instances in the topology ==--> |
| | | <call function="'getOpendsInstancesInATopology'"> |
| | | { 'suffix' : suffix } |
| | | </call> |
| | | <script> |
| | | opendsInstances = STAXResult |
| | | </script> |
| | | <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" |
| | | file="'%s/phases/shared/functions/opendstools.xml' % |
| | | TESTS_DIR"/> |
| | | <call function="'verdict4OpendsInstance'"> |
| | | { |
| | | 'instance' : instance, |
| | | 'instances' : opendsInstances, |
| | | 'suffix' : suffix, |
| | | 'fileFd' : cFileFd |
| | | } |
| | | </call> |
| | | </sequence> |
| | | </if> |
| | | |
| | | <!--== Post operations ======--> |
| | |
| | | (instance.getHost(),instance.getName()) |
| | | </message> |
| | | |
| | | <call function="'writeEndTagInstance'"> |
| | | {'fileFd' : cFileFd} |
| | | </call> |
| | | <script> |
| | | cFileFd.write('</instance>\n') |
| | | cFileFd.close() |
| | | cFileFd = '' |
| | | </script> |
| | | |
| | | </sequence> |