Skip to content

Commit

Permalink
Log errors in cert rotation test when deleting secret
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur committed Jun 12, 2024
1 parent 2e5d17e commit a7ecf58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/systeminternaltls/system_internal_tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ func TestTLSCertificateRotation(t *testing.T) {

t.Log("Deleting secret in system namespace")
if err := clients.KubeClient.CoreV1().Secrets(systemNS).Delete(context.Background(), config.ServingRoutingCertName, v1.DeleteOptions{}); err != nil {
t.Fatalf("Failed to delete secret %s in system namespacee", config.ServingRoutingCertName)
t.Fatalf("Failed to delete secret %s in system namespace: %v", config.ServingRoutingCertName, err)
}
checkEndpointState(t, clients, url)

t.Log("Deleting secret in ingress namespace")
if err := clients.KubeClient.CoreV1().Secrets(ingressNS).Delete(context.Background(), config.ServingRoutingCertName, v1.DeleteOptions{}); err != nil {
t.Fatalf("Failed to delete secret %s in ingress namespacee", config.ServingRoutingCertName)
t.Fatalf("Failed to delete secret %s in ingress namespace: %v", config.ServingRoutingCertName, err)
}
checkEndpointState(t, clients, url)
}
Expand Down

0 comments on commit a7ecf58

Please sign in to comment.