Skip to content

Commit

Permalink
Use consistent naming]
Browse files Browse the repository at this point in the history
  • Loading branch information
mociarain committed Jan 31, 2024
1 parent 3e86f4e commit 51034b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/adminapi_csr.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ var _ = Describe("[Admin API] CertificateSigningRequest action", func() {
for i := 0; i < csrCount; i++ {
csr := mockCSR(prefix+strconv.Itoa(i), namespace, csrData)

createFunction := clients.Kubernetes.CertificatesV1().CertificateSigningRequests().Create
CreateK8sObjectWithRetry(ctx, createFunction, csr, metav1.CreateOptions{})
createCall := clients.Kubernetes.CertificatesV1().CertificateSigningRequests().Create
CreateK8sObjectWithRetry(ctx, createCall, csr, metav1.CreateOptions{})
}
})

AfterEach(func(ctx context.Context) {
By("deleting the mock CSRs via Kubernetes API")
for i := 0; i < csrCount; i++ {
deleteFunction := clients.Kubernetes.CertificatesV1().CertificateSigningRequests().Delete
DeleteK8sObjectWithRetry(ctx, deleteFunction, prefix+strconv.Itoa(i), metav1.DeleteOptions{})
deleteCall := clients.Kubernetes.CertificatesV1().CertificateSigningRequests().Delete
DeleteK8sObjectWithRetry(ctx, deleteCall, prefix+strconv.Itoa(i), metav1.DeleteOptions{})
}
})

Expand Down

0 comments on commit 51034b4

Please sign in to comment.