5065N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
5065N/A ! The contents of this file are subject to the terms of the 5065N/A ! Common Development and Distribution License, Version 1.0 only 5065N/A ! (the "License"). You may not use this file except in compliance 5065N/A ! You can obtain a copy of the license at 5065N/A ! See the License for the specific language governing permissions 5065N/A ! and limitations under the License. 5065N/A ! When distributing Covered Code, include this CDDL HEADER in each 5065N/A ! file and include the License file at 5065N/A ! add the following below this CDDL HEADER, with the fields enclosed 5065N/A ! by brackets "[]" replaced with your own identifying information: 5065N/A ! Portions Copyright [yyyy] [name of copyright owner] 5065N/A ! Copyright 2012 ForgeRock AS. 5065N/A <
defaultcall function="main_snmp_traps"/>
5065N/A <
function name="main_snmp_traps" scope="local">
5065N/A <
block name="'main_snmp_traps'">
5065N/A CurrentTestPath['group']='snmp'
5065N/A CurrentTestPath['suite']='traps'
5065N/A __group=CurrentTestPath['group']
5065N/A <!--- Test Suite information 5065N/A #@TestSuiteName SNMP default properties test suite 5065N/A #@TestSuitePurpose Verify SNMP default properties 5065N/A <
call function="'testSuite_Preamble'"/>
5065N/A <!-- List of Import of Test Functions --> 5065N/A <!-- Import the files for this test suite --> 5065N/A <
iterate var="__import" in="importList">
5065N/A <
import machine="STAF_LOCAL_HOSTNAME" 5065N/A <!-- Specific to traps SNMP tests --> 5065N/A trapsCommunity = '%s' % SNMP_PROPERTIES['traps-community']
5065N/A defTrapsCommunityProp = '%s' % SNMP_PROPERTIES['traps-community']
5065N/A newTrapsCommunityProp = 'myCommunity'
5065N/A newTrapsDestProp = DIRECTORY_INSTANCE_HOST
5065N/A wrongTrapsDestProp = 'wrongtrapdestination'
5065N/A % (DIRECTORY_INSTANCE_DIR, OPENDSNAME)
5065N/A <!-- List of Test Cases --> <!-- Execute the Tests --> <
iterate var="__test" in="testsList">
<
call function="'%s' % (__test)" />
<
message log="1" level="'fatal'">
'Setup of test suite failed.'
<
message>'Test Cases Completed.'</
message>
<!-- Test Suite Cleanup --> <
message>'Finally: Global Schema Cleanup.'</
message>
<
message>'No Test Suite Cleanup'</
message>
<
catch exception="'STAFException'">
<
message log="1" level="'fatal'">'Cleanup of test suite failed.'</
message>
<
call function="'testSuite_Postamble'"/>