[SNMP4J] Unit Test SNMP v3 Agent with TestSnmpManager
ulrich berl
ulrich.berl at gmx.net
Tue Aug 7 09:53:59 CEST 2018
Hi Frank!
As i use one instance of a TestSnmpManager in my unit test now i use 'Key Localization' AND 'USM Separation' because following series of unit test will fail (WrongDigest):
Unit Test 1 - TEST V3 GET SysDescr for USER 'MD5' WITH WRONG AuthPassPhrase
Unit Test 2 - TEST V3 GET SysDescr for USER 'MD5' WITH CORRECT AuthPassPhrase
or without 'Key Localization' i have to call snmp.getUSM().removeAllUsers(securityName) before adding same use again (snmp.getUSM().addUser)
br, Ulrich
More information about the SNMP4J
mailing list