Skip to content

Commit

Permalink
removes unneeded set of 10 seconds for timeout in tests. Is not neede…
Browse files Browse the repository at this point in the history
…d and rather just produces sporadic errors in pipeline if TPP is not fast enough
  • Loading branch information
luispresuelVenafi committed Nov 21, 2024
1 parent 5e219b3 commit ba0de87
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/venafi/tpp/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,6 @@ func TestRenewCertRestoringValues(t *testing.T) {
req.KeyType = certificate.KeyTypeECDSA
req.KeyCurve = certificate.EllipticCurveP521
req.CsrOrigin = certificate.ServiceGeneratedCSR
req.Timeout = time.Second * 10
err = tpp.GenerateRequest(&endpoint.ZoneConfiguration{}, req)
if err != nil {
t.Fatalf("err is not nil, err: %s", err)
Expand Down Expand Up @@ -2288,7 +2287,6 @@ func TestEnrollWithLocation(t *testing.T) {

req := certificate.Request{}
req.Subject.CommonName = cn
req.Timeout = time.Second * 10
req.Location = &certificate.Location{
Instance: "instance",
Workload: workload,
Expand All @@ -2305,7 +2303,6 @@ func TestEnrollWithLocation(t *testing.T) {
}
req = certificate.Request{}
req.Subject.CommonName = cn
req.Timeout = time.Second * 10
req.Location = &certificate.Location{
Instance: "instance",
Workload: workload,
Expand All @@ -2322,7 +2319,6 @@ func TestEnrollWithLocation(t *testing.T) {
}
req = certificate.Request{}
req.Subject.CommonName = cn
req.Timeout = time.Second * 10
req.Location = &certificate.Location{
Instance: "instance",
Workload: workload,
Expand Down Expand Up @@ -2880,7 +2876,6 @@ func TestCreateSshCertServiceGeneratedKP(t *testing.T) {
req.ValidityPeriod = fmt.Sprint(duration, "h")
req.Template = os.Getenv("TPP_SSH_CA")
req.SourceAddresses = []string{"test.com"}
req.Timeout = time.Second * 10

respData, err := tpp.RequestSSHCertificate(req)

Expand Down Expand Up @@ -2959,7 +2954,6 @@ func TestCreateSshCertLocalGeneratedKP(t *testing.T) {
req.ValidityPeriod = fmt.Sprint(duration, "h")
req.Template = os.Getenv("TPP_SSH_CA")
req.SourceAddresses = []string{"test.com"}
req.Timeout = time.Second * 10

sPubKey := string(pub)

Expand Down

0 comments on commit ba0de87

Please sign in to comment.