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