From 5487cd3b34282553463f08a03d19dd02790f0847 Mon Sep 17 00:00:00 2001 From: Tim Ramlot <42113979+inteon@users.noreply.github.com> Date: Thu, 21 Nov 2024 15:59:21 +0100 Subject: [PATCH] fix test based on feedback Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com> --- pkg/venafi/tpp/tpp_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/venafi/tpp/tpp_test.go b/pkg/venafi/tpp/tpp_test.go index 310709a5..1e55c63f 100644 --- a/pkg/venafi/tpp/tpp_test.go +++ b/pkg/venafi/tpp/tpp_test.go @@ -311,7 +311,7 @@ func TestConvertServerPolicyToInternalPolicy(t *testing.T) { if k.KeyType != certificate.KeyTypeRSA { t.Fatal("invalid key type") } - if len(k.KeySizes) != 3 || k.KeySizes[0] != 2048 || k.KeySizes[1] != 4096 || k.KeySizes[2] != 8192 { + if len(k.KeySizes) != 4 || k.KeySizes[0] != 2048 || k.KeySizes[1] != 3072 || k.KeySizes[2] != 4096 || k.KeySizes[3] != 8192 { t.Fatal("bad key lengths") } @@ -399,7 +399,7 @@ func TestConvertServerPolicyToInternalPolicy(t *testing.T) { if k.KeyType != certificate.KeyTypeRSA { t.Fatal("invalid key type") } - if len(k.KeySizes) != 3 || k.KeySizes[0] != 2048 || k.KeySizes[1] != 4096 || k.KeySizes[2] != 8192 { + if len(k.KeySizes) != 4 || k.KeySizes[0] != 2048 || k.KeySizes[1] != 3072 || k.KeySizes[2] != 4096 || k.KeySizes[3] != 8192 { t.Fatal("bad key lengths") } k = p.AllowedKeyConfigurations[1]