Skip to content

Commit

Permalink
fix test based on feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Ramlot <[email protected]>
  • Loading branch information
inteon committed Nov 21, 2024
1 parent 2fa0a7b commit 5487cd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/venafi/tpp/tpp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 5487cd3

Please sign in to comment.