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 custom configuration
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestName v3_customconf: TODO
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestIssue none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPurpose TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPreamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestStep TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPostamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestResult TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <function name="snmp_v3_custom_001" scope="local">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <testcase name="getTestCaseName('v3 change the security-agent-file property')">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Change the security-agent-file property' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set security-agent-file:%s' \
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams % newSecurityFileProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
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 custom configuration
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestName v3_customconf: TODO
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestIssue none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPurpose TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPreamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestStep TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPostamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestResult TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <function name="snmp_v3_custom_002" scope="local">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <testcase name="getTestCaseName('v3 check the current security level (def)')">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the lowUser and low security level' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : lowUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : lowSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'authorizationError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the defUser and def security level' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : defUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : defSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the highUser and high security level' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : highUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : highSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
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 custom configuration
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestName v3_customconf: TODO
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestIssue none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPurpose TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPreamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestStep TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPostamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestResult TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <function name="snmp_v3_custom_003" scope="local">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <testcase name="getTestCaseName('v3 change the context property')">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Change the context property' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set community:%s' % newContextProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the old context' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : defUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : defSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'reqTimeout'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the context' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : otherUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : newContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : defSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restore the context property' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set community:%s' % defContextProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
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 custom configuration
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestName v3_customconf: TODO
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestIssue none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPurpose TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPreamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestStep TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPostamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestResult TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <function name="snmp_v3_custom_004" scope="local">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <testcase name="getTestCaseName('v3 set the allowed-user property to a list')">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Set the allowed-user property to a list' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set allowed-user:%s' % defUser
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--add allowed-user:%s' % otherUser
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the myUser community' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : defUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : defSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the myUser2 community' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : otherUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : defSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restore the allowed-user property' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set allowed-user:%s' % defUserProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
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 custom configuration
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestName v3_customconf: TODO
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestIssue none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPurpose TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPreamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestStep TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPostamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestResult TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <function name="snmp_v3_custom_005" scope="local">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <testcase name="getTestCaseName('v3 set the allowed-user property to otherUser')">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Set the allowed-user property to otherUser' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set allowed-user:%s' % otherUser
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the defUser' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : defUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : defSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'authorizationError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the otherUser' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : otherUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : defSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restore the security-agent-file property' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set allowed-user:%s' % defUserProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
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 custom configuration
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestName v3_customconf: TODO
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestIssue none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPurpose TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPreamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestStep TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPostamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestResult TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <function name="snmp_v3_custom_006" scope="local">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <testcase name="getTestCaseName('v3 set the security-level property to low')">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Set the security-level property to low' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set security-level:%s' \
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams % lowSecurityLevelProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the myUser1 and low security level' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : lowUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : lowSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the myUser2 and med security level' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : defUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : defSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the myUser3 and high security level' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : highUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : highSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restore the security-level property' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set security-level:%s' \
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams % defSecurityLevelProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
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 custom configuration
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestName v3_customconf: TODO
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestIssue none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPurpose TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPreamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestStep TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPostamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestResult TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <function name="snmp_v3_custom_007" scope="local">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <testcase name="getTestCaseName('v3 set the security-level property to high')">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Set the security-level property to high' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set security-level:%s' \
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams % highSecurityLevelProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the myUser1 and low security level' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : lowUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : lowSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'authorizationError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the myUser2 and med security level' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : defUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : defSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'authorizationError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Get with the myUser3 and high security level' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpVersion' : '3',
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpPort' : SNMP_PORT ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpUser' : highUser ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpCommunity' : defContextProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityLevel' : highSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpSecurityFile' : mySecurityFile ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpOIDs' : oid ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'snmpStatus' : 'noError'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restore the security-level property' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set security-level:%s' \
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams % defSecurityLevelProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
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 custom configuration
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestName v3_customconf: TODO
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestIssue none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPurpose TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPreamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestStep TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPostamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestResult TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <function name="snmp_v3_custom_008" scope="local">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <testcase name="getTestCaseName('v3 set the security-level property to wrong')">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Set the security-level property to wrong' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set security-level:%s' \
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams % wrongSecurityLevelProp ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'expectedRC' : 1
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams returnString = STAXResult[0][1]
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams msg1 = 'The value "%s" is not a valid value for the' \
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams % wrongSecurityLevelProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams msg2 = 'SNMP Connection Handler property "security-level"'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams msg3 = 'which has the following syntax:'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams msg4 = 'authnopriv | authpriv | noauthnopriv'
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams msg = '%s %s %s %s' % (msg1, msg2, msg3, msg4)
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'returnString' : returnString ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'expectedString' : msg
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 custom configuration
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestName v3_customconf: TODO
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestIssue none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPurpose TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPreamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestStep TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestPostamble none
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams #@TestResult TODO.
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <function name="snmp_v3_custom_009" scope="local">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <testcase name="getTestCaseName('v3 restore the security-agent-file property')">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restore the security-agent-file property' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'subcommand' : 'set-connection-handler-prop' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectType' : 'handler-name' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'objectName' : 'SNMP Connection Handler' ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'optionsString' : '--set security-agent-file:%s' \
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams % defSecurityFileProp
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams { 'stepMessage' : 'Restart the SNMP Connection Handler' }
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <call function="'restartSNMPConnectionHandler'">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams <catch exception="'STAXException'" typevar="eType" var="eInfo">
21d225782e5e4cc8e40d1fdd364430570ac2dd09gary.williams '%s: Test failed. eInfo(%s)' % (eType,eInfo)