184N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
184N/A ! The contents of this file are subject to the terms of the 184N/A ! Common Development and Distribution License, Version 1.0 only 184N/A ! (the "License"). You may not use this file except in compliance 184N/A ! See the License for the specific language governing permissions 184N/A ! and limitations under the License. 184N/A ! When distributing Covered Code, include this CDDL HEADER in each 184N/A ! If applicable, add the following below this CDDL HEADER, with the 184N/A ! fields enclosed by brackets "[]" replaced with your own identifying 184N/A ! Portions Copyright [yyyy] [name of copyright owner] 184N/A ! Copyright 2008 Sun Microsystems, Inc. 184N/A ! Portions Copyright 2012 ForgeRock AS 618N/A <!--- Test Case information 184N/A #@TestMarker SNMP v3 with default configuration 184N/A #@TestName v3_defaultconf: get with snmpAdmin user 184N/A #@TestPurpose Check that a SNMP Get request with snmpAdmin 184N/A user and default context fails with 184N/A #@TestStep SNMP Get request. 184N/A #@TestResult Success if SNMPGet returns 0. 881N/A <
function name="snmp_v3_default_001" scope="local">
881N/A <
testcase name="getTestCaseName('v3 get with snmpAdmin and default context')">
881N/A <
call function="'testCase_Preamble'"/>
881N/A <
call function="'testStep'">
881N/A { 'stepMessage' : 'Get with snmpAdmin and default context' }
881N/A <
call function="'SNMPGet'">
184N/A 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
881N/A 'snmpPort' : SNMP_PORT ,
881N/A 'snmpUser' : 'snmpAdmin' ,
881N/A 'snmpCommunity' : context ,
184N/A 'snmpSecurityLevel' : securityLevel ,
184N/A 'snmpSecurityFile' : securityFile ,
184N/A 'snmpStatus' : 'authorizationError'
881N/A <
catch exception="'STAXException'" typevar="eType" var="eInfo">
881N/A <
message log="1" level="'fatal'">
881N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
881N/A <
call function="'testCase_Postamble'"/>
184N/A <!--- Test Case information 184N/A #@TestMarker SNMP v3 with default configuration 184N/A #@TestName v3_defaultconf: get with snmpAdmin user 184N/A #@TestPurpose Check that a SNMP Get request with snmpAdmin 184N/A user and null context succeeds but the OIDs 184N/A values are not correct. 881N/A #@TestStep SNMP Get request. 881N/A #@TestResult Success if SNMPGet returns 0. 881N/A <
function name="snmp_v3_default_002" scope="local">
184N/A <
testcase name="getTestCaseName('v3 get with snmpAdmin and null context')">
184N/A <
call function="'testCase_Preamble'"/>
184N/A <
call function="'testStep'">
184N/A { 'stepMessage' : 'Get with snmpAdmin and null context' }
881N/A <
call function="'SNMPGet'">
184N/A 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpUser' : 'snmpAdmin' ,
'snmpCommunity' : 'null' ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'noError' ,
'snmpValidOIDs' : 'False'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: det with snmpAdmin user #@TestPurpose Check that a SNMP Set request with snmpAdmin user and default context fails with #@TestStep SNMP Set request. #@TestResult Success if SNMPSet returns 0. <
function name="snmp_v3_default_003" scope="local">
<
testcase name="getTestCaseName('v3 set with snmpAdmin and default context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Set with snmpAdmin and default context' }
<
call function="'SNMPSet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpUser' : 'snmpAdmin' ,
'snmpCommunity' : context ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'authorizationError'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: set with snmpAdmin user #@TestPurpose Check that a SNMP Set request with snmpAdmin user and null context fails with noAccess. #@TestStep SNMP Set request. #@TestResult Success if SNMPSet returns 0. <
function name="snmp_v3_default_004" scope="local">
<
testcase name="getTestCaseName('v3 set with snmpAdmin and null context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Set with snmpAdmin and null context' }
<
call function="'SNMPSet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpUser' : 'snmpAdmin' ,
'snmpCommunity' : 'null' ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'noAccess'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: get with defaultUser user #@TestPurpose Check that a SNMP Get request with defaultUser user and default context fails with #@TestStep SNMP Get request. #@TestResult Success if SNMPGet returns 0. <
function name="snmp_v3_default_005" scope="local">
<
testcase name="getTestCaseName('v3 get with defaultUser and default context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Get with defaultUser and default context' }
<
call function="'SNMPGet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpUser' : 'defaultUser' ,
'snmpCommunity' : context ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'authorizationError'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: get with defaultUser user #@TestPurpose Check that a SNMP Get request with defaultUser user and null context succeeds but the OIDs #@TestStep SNMP Get request. #@TestResult Success if SNMPGet returns 0. <
function name="snmp_v3_default_006" scope="local">
<
testcase name="getTestCaseName('v3 get with defaultUser and null context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Get with defaultUser and null context' }
<
call function="'SNMPGet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpUser' : 'defaultUser' ,
'snmpCommunity' : 'null' ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'noError' ,
'snmpValidOIDs' : 'False'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: set with defaultUser user #@TestPurpose Check that a SNMP Set request with defaultUser user and default context fails with #@TestStep SNMP Set request. #@TestResult Success if SNMPSet returns 0. <
function name="snmp_v3_default_007" scope="local">
<
testcase name="getTestCaseName('v3 set with defaultUser and default context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Set with defaultUser and default context' }
<
call function="'SNMPSet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpUser' : 'defaultUser' ,
'snmpCommunity' : context ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'authorizationError'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: set with defaultUser user #@TestPurpose Check that a SNMP Set request with defaultUser user and null context fails with noAccess. #@TestStep SNMP Set request. #@TestResult Success if SNMPSet returns 0. <
function name="snmp_v3_default_008" scope="local">
<
testcase name="getTestCaseName('v3 set with defaultUser and null context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Set with defaultUser and null context' }
<
call function="'SNMPSet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpUser' : 'defaultUser' ,
'snmpCommunity' : 'null' ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'noAccess'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: get with unknown user #@TestPurpose Check that a SNMP Get request with unknown user and default context fails with #@TestStep SNMP Get request. #@TestResult Success if SNMPGet returns 0. <
function name="snmp_v3_default_009" scope="local">
<
testcase name="getTestCaseName('v3 get with unknown user and default context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Get with unknown user and default context' }
<
call function="'SNMPGet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpCommunity' : context ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'SnmpStatusException'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: get with unknown user #@TestPurpose Check that a SNMP Get request with unknown user and null context fails with #@TestStep SNMP Get request. #@TestResult Success if SNMPGet returns 0. <
function name="snmp_v3_default_010" scope="local">
<
testcase name="getTestCaseName('v3 get with unknown user and default context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Get with unknown user and default context' }
<
call function="'SNMPGet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpCommunity' : 'null' ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'SnmpStatusException'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: set with unknown user #@TestPurpose Check that a SNMP Set request with unknown user and default context fails with #@TestStep SNMP Set request. #@TestResult Success if SNMPSet returns 0. <
function name="snmp_v3_default_011" scope="local">
<
testcase name="getTestCaseName('v3 set with unknown user and default context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Set with unknown user and OpenDS context' }
<
call function="'SNMPSet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpCommunity' : context ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'SnmpStatusException'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>
<!--- Test Case information #@TestMarker SNMP v3 with default configuration #@TestName v3_defaultconf: set with unknown user #@TestPurpose Check that a SNMP Set request with unknown user and default context fails with #@TestStep SNMP Set request. #@TestResult Success if SNMPSet returns 0. <
function name="snmp_v3_default_012" scope="local">
<
testcase name="getTestCaseName('v3 set with unknown user and null context')">
<
call function="'testCase_Preamble'"/>
<
call function="'testStep'">
{ 'stepMessage' : 'Set with unknown user and null context' }
<
call function="'SNMPSet'">
'snmpHost' : DIRECTORY_INSTANCE_HOST ,
'snmpCommunity' : 'null' ,
'snmpSecurityLevel' : securityLevel ,
'snmpSecurityFile' : securityFile ,
'snmpStatus' : 'SnmpStatusException'
<
catch exception="'STAXException'" typevar="eType" var="eInfo">
<
message log="1" level="'fatal'">
'%s: Test failed. eInfo(%s)' % (eType,eInfo)
<
call function="'testCase_Postamble'"/>