5767N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
5767N/A ! The contents of this file are subject to the terms of the 5767N/A ! Common Development and Distribution License, Version 1.0 only 5767N/A ! (the "License"). You may not use this file except in compliance 5767N/A ! See the License for the specific language governing permissions 5767N/A ! and limitations under the License. 5767N/A ! When distributing Covered Code, include this CDDL HEADER in each 6982N/A ! If applicable, add the following below this CDDL HEADER, with the 6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying 5767N/A ! Portions Copyright [yyyy] [name of copyright owner] 6101N/A ! Copyright 2012-2013 ForgeRock AS. 5767N/A <
defaultcall function="main_snmp_v1"/>
5767N/A <
function name="main_snmp_v1" scope="local">
5767N/A <
block name="'main_snmp_v1'">
5767N/A CurrentTestPath['group']='snmp'
5767N/A CurrentTestPath['suite']='v1'
5767N/A __group=CurrentTestPath['group']
5767N/A <!--- Test Suite information 5770N/A #@TestSuiteName SNMP v1 operations 5770N/A #@TestSuitePurpose Verify SNMP v1 operations 5767N/A <
call function="'testSuite_Preamble'"/>
5767N/A <!-- List of Import of Test Functions --> 5767N/A <!-- Import the files for this test suite --> 5767N/A <
iterate var="__import" in="importList">
5767N/A <
import machine="STAF_LOCAL_HOSTNAME" 5767N/A <!-- Specific to v1 SNMP tests --> 5767N/A % (SNMP_PROPERTIES['community'], SNMP_PROPERTIES['community'])
5767N/A defCommunityProp = SNMP_PROPERTIES['community']
5767N/A defCommunity = '%s@%s' %(defCommunityProp, defCommunityProp)
5767N/A defManagerProp = SNMP_PROPERTIES['allowed-manager']
5767N/A newCommunityProp = 'myCommunity'
5767N/A newCommunity = '%s@%s' %(newCommunityProp, newCommunityProp)
6101N/A newManagerProp = 'localhost'
5767N/A wrongManagerProp = 'myManager'
5767N/A <!-- List of Test Cases --> 5767N/A <
iterate var="__test" in="testsList">
5767N/A <
call function="'%s' % (__test)" />
5767N/A <
message log="1" level="'fatal'">
5767N/A 'Setup of test suite failed.'
5767N/A <
message>'Test Cases Completed.'</
message>
5767N/A <!-- Test Suite Cleanup --> 5821N/A <
message>'Finally: Global Cleanup.'</
message>
5767N/A <
message>'No Test Suite Cleanup'</
message>
5767N/A <
catch exception="'STAFException'">
5767N/A <
message log="1" level="'fatal'">'Cleanup of test suite failed.'</
message>
5767N/A <
call function="'testSuite_Postamble'"/>