Fixed: [Trying to change the "config false" node through snmpset](https://github.com/clicon/clixon/issues/377)

* Fixed by returning `SNMP_ERR_NOTWRITABLE` when trying to reserve object
This commit is contained in:
Olof hagsand 2022-10-09 11:59:26 +02:00
parent d2c3b903f1
commit aff69127b6
3 changed files with 13 additions and 0 deletions

View file

@ -290,6 +290,9 @@ expectpart "$($snmpget $OID19)" 0 "$OID19 = Hex-STRING: 74 65 73 74 00"
new "Test SNMP getnext netSnmpHostName"
expectpart "$($snmpgetnext $OID19)" 0 "$OID20 = INTEGER: 1"
new "Negative test: Try to set object"
expectpart "$($snmpset $OID1 i 4 2> /dev/null)" 2 "^$"
new "Cleaning up"
testexit