From 115f42a328d710f8b75a4ab43d7a88207f6868cf Mon Sep 17 00:00:00 2001 From: Parham Alvani Date: Mon, 4 Dec 2023 15:27:37 +0000 Subject: [PATCH] feat: add test for key parsing and reading --- internal/authenticator/key_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/authenticator/key_test.go b/internal/authenticator/key_test.go index db7cab7..2f75836 100644 --- a/internal/authenticator/key_test.go +++ b/internal/authenticator/key_test.go @@ -7,6 +7,7 @@ import ( "github.com/stretchr/testify/require" ) +// nolint: funlen func TestGenerateKeys(t *testing.T) { t.Parallel() @@ -37,6 +38,15 @@ func TestGenerateKeys(t *testing.T) { haveErr: true, err: nil, }, + { + name: "rsa method with invalid key", + method: "RSA512", + keys: map[string]string{ + "snpay": "YWRtaW4", + }, + haveErr: true, + err: nil, + }, { name: "invalid key type", method: "Parham",