monitoring_componant.xml revision 6982
3179N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
3179N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
3179N/A<!--
3179N/A ! CDDL HEADER START
3179N/A !
3179N/A ! The contents of this file are subject to the terms of the
3179N/A ! Common Development and Distribution License, Version 1.0 only
3179N/A ! (the "License"). You may not use this file except in compliance
3179N/A ! with the License.
3179N/A !
6982N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A ! or http://forgerock.org/license/CDDLv1.0.html.
3179N/A ! See the License for the specific language governing permissions
3179N/A ! and limitations under the License.
3179N/A !
3179N/A ! When distributing Covered Code, include this CDDL HEADER in each
6982N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A ! If applicable, add the following below this CDDL HEADER, with the
6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying
6982N/A ! information:
3179N/A ! Portions Copyright [yyyy] [name of copyright owner]
3179N/A !
3179N/A ! CDDL HEADER END
3179N/A !
4618N/A ! Copyright 2008-2009 Sun Microsystems, Inc.
3179N/A! -->
3179N/A<stax>
3179N/A <defaultcall function="monitoring_componant"/>
3179N/A <function name="monitoring_componant" scope="local">
3179N/A <block name="STAXCurrentFunction">
4618N/A <try>
4618N/A <sequence>
4618N/A <script>
4618N/A CurrentTestPath['suite']=STAXCurrentFunction
4618N/A </script>
4618N/A <call function="'testSuite_Preamble'" />
4618N/A
4618N/A <call function="'common_setup'">
4618N/A {
4618N/A 'quickStart' : True ,
4618N/A 'startServer' : True ,
4618N/A 'stopServer' : False
4618N/A }
4618N/A </call>
4618N/A
4618N/A <!--- Test Suite information
4618N/A #@TestSuiteName Monitoring componants
4618N/A #@TestSuitePurpose Verify the monitoring of componants
4618N/A #@TestSuiteID Monitoring
4618N/A #@TestSuiteGroup Monitoring
4618N/A #@TestGroup Monitoring
4618N/A #@TestScript monitoring_componants.xml
4618N/A #@TestHTMLLink http://opends.dev.java.net/
4618N/A -->
4618N/A
4618N/A <!---
4618N/A #@TestMarker monitoring componants
4618N/A #@TestName monitoring componants
4618N/A #@TestIssue Check the monitoring of the componant Backup Backend
4618N/A #@TestPreamble none
4618N/A #@TestStep Check the entry on cn=backup Backend,cn=monitor,cn=monitor is available
4618N/A #@TestPostamble none
4618N/A
4618N/A -->
4618N/A
4618N/A <testcase name="getTestCaseName('Backup Backend monitoring')">
4618N/A <sequence>
4618N/A <call function="'testCase_Preamble'"/>
4618N/A
4618N/A <!-- Check the entry on cn=backup Backend,cn=monitor is available -->
4618N/A <message>'###### Monitor the Backup Backend ###### '</message>
4618N/A <call function="'SearchObject'">
4618N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
4618N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
4618N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4618N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
4618N/A 'dsBaseDN' : 'cn=backup Backend,cn=monitor',
4618N/A 'dsFilter' : 'objectclass=*',
4618N/A 'expectedRC' : 0 }
4618N/A </call>
4618N/A <call function="'testCase_Postamble'"/>
4618N/A </sequence>
4618N/A </testcase>
4618N/A
4618N/A <!---
4618N/A #@TestMarker monitoring componants
4618N/A #@TestName monitoring componants
4618N/A #@TestIssue Check the monitoring of the componant Database Backend
4618N/A #@TestPreamble none
4618N/A #@TestStep Check the entry on cn=userRoot Backend,cn=monitor,cn=monitor is available
4618N/A #@TestPostamble none
4618N/A
4618N/A -->
4618N/A
4618N/A <testcase name="getTestCaseName('Database Backend monitoring')">
4618N/A <sequence>
4618N/A <call function="'testCase_Preamble'"/>
4618N/A
4618N/A <!-- Check the entry on cn=userRoot Backend,cn=monitor is available -->
4618N/A <message>'###### Monitor the dbName Backend ###### '</message>
4618N/A <call function="'SearchObject'">
4618N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
4618N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
4618N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4618N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
4618N/A 'dsBaseDN' : 'cn=%s Backend,cn=monitor' % DIRECTORY_INSTANCE_BE,
4618N/A 'dsFilter' : 'objectclass=*',
4618N/A 'expectedRC' : 0 }
4618N/A </call>
4618N/A <call function="'testCase_Postamble'"/>
4618N/A </sequence>
4618N/A </testcase>
4618N/A
4618N/A
4618N/A <!---
4618N/A #@TestMarker monitoring componants
4618N/A #@TestName monitoring componants
4618N/A #@TestIssue Check the monitoring of the componant tasks Backend
4618N/A #@TestPreamble none
4618N/A #@TestStep Check the entry on cn=tasks Backend,cn=monitor,cn=monitor is available
4618N/A #@TestPostamble none
4618N/A
4618N/A -->
4618N/A
4618N/A <testcase name="getTestCaseName('Tasks Backend monitoring')">
4618N/A <sequence>
4618N/A <call function="'testCase_Preamble'"/>
4618N/A
4618N/A <!-- Check the entry on cn=tasks Backend,cn=monitor is available -->
4618N/A <message>'###### Monitor the tasks Backend ###### '</message>
4618N/A <call function="'SearchObject'">
4618N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
4618N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
4618N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
4618N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
4618N/A 'dsBaseDN' : 'cn=tasks Backend,cn=monitor',
4618N/A 'dsFilter' : 'objectclass=*',
4618N/A 'expectedRC' : 0 }
4618N/A </call>
4618N/A <call function="'testCase_Postamble'"/>
4618N/A </sequence>
4618N/A </testcase>
4618N/A
4618N/A </sequence>
4618N/A <finally>
3179N/A <sequence>
4618N/A <!-- Test Suite Cleanup -->
4618N/A <message>'Finally: Global Monitoring Component Cleanup.'</message>
4618N/A <try>
4618N/A <call function="'common_cleanup'" />
4618N/A <catch exception="'STAFException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <finally>
4618N/A <call function="'testSuite_Postamble'"/>
4618N/A </finally>
4618N/A </try>
3179N/A </sequence>
4618N/A </finally>
4618N/A
4618N/A </try>
3179N/A </block>
3179N/A </function>
3179N/A</stax>