The gem does not recognize authentication failures
Closed this issue · 2 comments
Hello,
As you can read in the title, it looks like the gem does not recognize the authentication failures.
When using bad passwords, I was expecting the client to raise an error 'Authentication failure', like it does on the snmpget command:
But instead of raising an error, it returns an integer which correspond to the number of requests received by the device.
Is it voluntary?
Hi,
Is it voluntary?
Definitely not. It's possible I overlooked it when I implemented it.
Could you patch it? I imagine this would be relatively easy to contribute, given that the test suite already relies on authentication credentials, so you just have to add a test with wrong credentials annd see an exception pop out.
@jinxka had to patch your changes, as some things were missing. I've released v0.4.2
, let me know if it all works as intended.