From 0f078859deaad64d13f3a4c745c3fdecf5f369db Mon Sep 17 00:00:00 2001 From: Tim Ramlot <42113979+inteon@users.noreply.github.com> Date: Mon, 19 Feb 2024 12:13:53 +0100 Subject: [PATCH] add error case to DNParse tests Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com> --- pkg/util/pki/internal/dn_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/util/pki/internal/dn_test.go b/pkg/util/pki/internal/dn_test.go index d59954cc8..5fd50baa9 100644 --- a/pkg/util/pki/internal/dn_test.go +++ b/pkg/util/pki/internal/dn_test.go @@ -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 {