Skip to content

Commit

Permalink
Fixed test case results to match latest agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Feb 5, 2024
1 parent 806132b commit d420f1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/hlapi/asyncio/manager/cmdgen/test_usm_sha_aes128.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from pysnmp.hlapi.asyncio import *
from pysnmp.proto.errind import RequestTimedOut, UnknownUserName
from pysnmp.proto.errind import DecryptionError, RequestTimedOut, UnknownUserName

@pytest.mark.asyncio
async def test_usm_sha_aes128():
Expand Down Expand Up @@ -46,8 +46,8 @@ async def test_usm_sha_aes128_wrong_auth():
ObjectType(ObjectIdentity("SNMPv2-MIB", "sysDescr", 0)),
)

assert isinstance(errorIndication, RequestTimedOut)
assert str(errorIndication) == 'No SNMP response received before timeout'
assert isinstance(errorIndication, DecryptionError)
assert str(errorIndication) == 'Ciphering services not available or ciphertext is broken'

snmpEngine.transportDispatcher.closeDispatcher()

Expand All @@ -69,8 +69,8 @@ async def test_usm_sha_aes128_wrong_priv():
ObjectType(ObjectIdentity("SNMPv2-MIB", "sysDescr", 0)),
)

assert isinstance(errorIndication, RequestTimedOut)
assert str(errorIndication) == 'No SNMP response received before timeout'
assert isinstance(errorIndication, DecryptionError)
assert str(errorIndication) == 'Ciphering services not available or ciphertext is broken'

snmpEngine.transportDispatcher.closeDispatcher()

Expand Down

0 comments on commit d420f1d

Please sign in to comment.