add error case to DNParse tests

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Tim Ramlot 2024-02-19 12:13:53 +01:00
parent a2b3cc81c3
commit 0f078859de
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D

View File

@ -161,6 +161,7 @@ func TestErrorDNParsing(t *testing.T) {
`1.3.6.1.4.1.1466.0=test;`: "DN ended with incomplete type, value pair",
"1.3.6.1.4.1.1466.0=test+,": "incomplete type, value pair",
"1=#0402486": "failed to decode hex-encoded string: encoding/hex: odd length hex string",
"DF=#6666666666665006838820013100000746939546349182108463491821809FBFFFFFFFFF": "failed to unmarshal hex-encoded string: asn1: syntax error: data truncated",
}
for test, answer := range testcases {