monitoring_setup.xml revision d81978a0815d5b8a75633c35e3e1f8708d36f017
2N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
2N/A<!--
2N/A ! CDDL HEADER START
2N/A !
2N/A ! The contents of this file are subject to the terms of the
2N/A ! Common Development and Distribution License, Version 1.0 only
2N/A ! (the "License"). You may not use this file except in compliance
2N/A ! with the License.
2N/A !
2N/A ! You can obtain a copy of the license at
2N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
2N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2N/A ! See the License for the specific language governing permissions
2N/A ! and limitations under the License.
2N/A !
2N/A ! When distributing Covered Code, include this CDDL HEADER in each
2N/A ! file and include the License file at
2N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
2N/A ! add the following below this CDDL HEADER, with the fields enclosed
2N/A ! by brackets "[]" replaced with your own identifying information:
2N/A ! Portions Copyright [yyyy] [name of copyright owner]
2N/A !
2N/A ! CDDL HEADER END
2N/A !
2N/A ! Copyright 2008 Sun Microsystems, Inc.
2N/A! -->
2N/A<stax>
2N/A
2N/A <defaultcall function="monitoring_setup"/>
2N/A <function name="monitoring_setup">
2N/A <sequence>
2N/A <block name="'setup'">
2N/A <sequence>
2N/A <block name="'Block Create DS Topology'">
2N/A <!-- Create the topology necessary to the test group/suite -->
<sequence>
<message>
'Create DS topology as described in config.py'
</message>
<call function="'createTopology'">
{ 'initialiseInstance' : True }
</call>
<call function="'checkRC'">
{ 'returncode' : RC ,
'result' : STAXResult }
</call>
</sequence>
<!--- End Block Create DS Topology -->
</block>
<block name="'Block DS Process Active'">
<!--- Start DS -->
<sequence>
<message>
'Start DS to run on port %s' % (DIRECTORY_INSTANCE_PORT)
</message>
<!--- Start DS -->
<call function="'StartDsWithScript'">
{ 'location' : STAF_REMOTE_HOSTNAME }
</call>
<call function="'checkRC'">
{ 'returncode' : RC ,
'result' : STAXResult }
</call>
<!--- Check that DS started -->
<call function="'isAlive'">
{ 'noOfLoops' : 5 ,
'noOfMilliSeconds' : 2000 }
</call>
<call function="'ldapSearchWithScript'">
{ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'dsBaseDN' : 'dc=com' ,
'dsFilter' : 'objectclass=*' }
</call>
</sequence>
<!--- End Block DS Process Active -->
</block>
</sequence>
</block>
</sequence>
</function>
</stax>