3179N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
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 ! You can obtain a copy of the license at 3179N/A ! See the License for the specific language governing permissions 3179N/A ! and limitations under the License. 3179N/A ! When distributing Covered Code, include this CDDL HEADER in each 3179N/A ! file and include the License file at 3179N/A ! add the following below this CDDL HEADER, with the fields enclosed 3179N/A ! by brackets "[]" replaced with your own identifying information: 3179N/A ! Portions Copyright [yyyy] [name of copyright owner] 4618N/A ! Copyright 2008-2009 Sun Microsystems, Inc. 3179N/A <
defaultcall function="monitoring_componant"/>
3179N/A <
function name="monitoring_componant" scope="local">
3179N/A <
block name="STAXCurrentFunction">
4618N/A CurrentTestPath['suite']=STAXCurrentFunction
4618N/A <
call function="'testSuite_Preamble'" />
4618N/A <
call function="'common_setup'">
4618N/A <!--- Test Suite information 4618N/A #@TestSuiteName Monitoring componants 4618N/A #@TestSuitePurpose Verify the monitoring of componants 4618N/A #@TestSuiteGroup Monitoring 4618N/A #@TestMarker monitoring componants 4618N/A #@TestName monitoring componants 4618N/A #@TestIssue Check the monitoring of the componant Backup Backend 4618N/A #@TestStep Check the entry on cn=backup Backend,cn=monitor,cn=monitor is available 4618N/A <
testcase name="getTestCaseName('Backup Backend monitoring')">
4618N/A <
call function="'testCase_Preamble'"/>
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 <
call function="'testCase_Postamble'"/>
4618N/A #@TestMarker monitoring componants 4618N/A #@TestName monitoring componants 4618N/A #@TestIssue Check the monitoring of the componant Database Backend 4618N/A #@TestStep Check the entry on cn=userRoot Backend,cn=monitor,cn=monitor is available 4618N/A <
testcase name="getTestCaseName('Database Backend monitoring')">
4618N/A <
call function="'testCase_Preamble'"/>
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 <
call function="'testCase_Postamble'"/>
4618N/A #@TestMarker monitoring componants 4618N/A #@TestName monitoring componants 4618N/A #@TestIssue Check the monitoring of the componant tasks Backend 4618N/A #@TestStep Check the entry on cn=tasks Backend,cn=monitor,cn=monitor is available 4618N/A <
testcase name="getTestCaseName('Tasks Backend monitoring')">
4618N/A <
call function="'testCase_Preamble'"/>
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 <
call function="'testCase_Postamble'"/>
4618N/A <!-- Test Suite Cleanup --> 4618N/A <
message>'Finally: Global Monitoring Component Cleanup.'</
message>
4618N/A <
call function="'common_cleanup'" />
4618N/A <
catch exception="'STAFException'">
4618N/A <
message log="1" level="'fatal'">'Cleanup of test suite failed.'</
message>
4618N/A <
call function="'testSuite_Postamble'"/>