@@ -10,6 +10,7 @@ import (
1010 "github.com/securesign/operator/internal/constants"
1111 "github.com/securesign/operator/internal/labels"
1212 cryptoutil "github.com/securesign/operator/internal/utils/crypto"
13+ fipsTest "github.com/securesign/operator/internal/utils/crypto/test"
1314 "github.com/securesign/operator/internal/utils/kubernetes"
1415 "github.com/securesign/operator/test/e2e/support"
1516 "github.com/securesign/operator/test/e2e/support/tas/tsa"
@@ -189,7 +190,7 @@ func Test_SignerHandle(t *testing.T) {
189190 },
190191 }
191192
192- secret := tsa .CreateSecrets (instance .Namespace , "tsa-test-secret" , elliptic . P256 () )
193+ secret := tsa .CreateSecrets (instance .Namespace , "tsa-test-secret" )
193194 return common .TsaTestSetup (instance , t , nil , NewGenerateSignerAction (), secret )
194195 },
195196 testCase : func (g Gomega , a action.Action [* rhtasv1alpha1.TimestampAuthority ], client client.WithWatch , instance * rhtasv1alpha1.TimestampAuthority ) bool {
@@ -236,10 +237,7 @@ func Test_SignerHandle(t *testing.T) {
236237 },
237238 },
238239 }
239- _ , priv , _ , err := support .CreateCertificates (elliptic .P224 (), true )
240- if err != nil {
241- t .Fatalf ("failed to create test certificates: %v" , err )
242- }
240+ priv := fipsTest .GenerateECPrivateKeyPEM (t , elliptic .P224 ())
243241 secret := & v1.Secret {
244242 ObjectMeta : metav1.ObjectMeta {
245243 Name : "tsa-invalid-secret" ,
@@ -295,7 +293,7 @@ func Test_SignerHandle(t *testing.T) {
295293 },
296294 },
297295 }
298- secret := tsa .CreateSecrets (instance .Namespace , "tsa-test-secret" , elliptic . P256 () )
296+ secret := tsa .CreateSecrets (instance .Namespace , "tsa-test-secret" )
299297 return common .TsaTestSetup (instance , t , nil , NewGenerateSignerAction (), secret )
300298 },
301299 testCase : func (g Gomega , a action.Action [* rhtasv1alpha1.TimestampAuthority ], client client.WithWatch , instance * rhtasv1alpha1.TimestampAuthority ) bool {
@@ -366,8 +364,8 @@ func Test_SignerHandle(t *testing.T) {
366364 },
367365 }
368366
369- secret := tsa .CreateSecrets (instance .Namespace , "tsa-test-secret" , elliptic . P256 () )
370- old := tsa .CreateSecrets (instance .Namespace , "old" , elliptic . P256 () )
367+ secret := tsa .CreateSecrets (instance .Namespace , "tsa-test-secret" )
368+ old := tsa .CreateSecrets (instance .Namespace , "old" )
371369 old .Annotations = generateSecretAnnotations (* instance .Status .Signer )
372370 return common .TsaTestSetup (instance , t , nil , NewGenerateSignerAction (), secret , old )
373371 },
@@ -435,7 +433,7 @@ func Test_SignerHandle(t *testing.T) {
435433 },
436434 }
437435
438- old := tsa .CreateSecrets (instance .Namespace , "old" , elliptic . P256 () )
436+ old := tsa .CreateSecrets (instance .Namespace , "old" )
439437 old .Annotations = generateSecretAnnotations (* instance .Status .Signer )
440438 return common .TsaTestSetup (instance , t , nil , NewGenerateSignerAction (), old )
441439 },
@@ -479,7 +477,7 @@ func Test_SignerHandle(t *testing.T) {
479477 },
480478 }
481479
482- secret := tsa .CreateSecrets (instance .Namespace , "secret" , elliptic . P256 () )
480+ secret := tsa .CreateSecrets (instance .Namespace , "secret" )
483481 secret .Annotations = generateSecretAnnotations (instance .Spec .Signer )
484482 secret .Labels = map [string ]string {TSACertCALabel : "fake" }
485483 return common .TsaTestSetup (instance , t , nil , NewGenerateSignerAction (), secret )
0 commit comments