From 176fb6a139aed75c123fc9937cfb66b6ccaea171 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Tue, 23 Mar 2021 10:33:05 -0500 Subject: [PATCH] Authenticators are no longer namespaced, so clean up these test logs. Signed-off-by: Matt Moyer --- test/library/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/library/client.go b/test/library/client.go index c53acc6f..789ffb2d 100644 --- a/test/library/client.go +++ b/test/library/client.go @@ -167,11 +167,11 @@ func CreateTestWebhookAuthenticator(ctx context.Context, t *testing.T) corev1.Ty Spec: testEnv.TestWebhook, }, metav1.CreateOptions{}) require.NoError(t, err, "could not create test WebhookAuthenticator") - t.Logf("created test WebhookAuthenticator %s/%s", webhook.Namespace, webhook.Name) + t.Logf("created test WebhookAuthenticator %s", webhook.Name) t.Cleanup(func() { t.Helper() - t.Logf("cleaning up test WebhookAuthenticator %s/%s", webhook.Namespace, webhook.Name) + t.Logf("cleaning up test WebhookAuthenticator %s", webhook.Name) deleteCtx, cancel := context.WithTimeout(context.Background(), time.Minute) defer cancel() err := webhooks.Delete(deleteCtx, webhook.Name, metav1.DeleteOptions{}) @@ -230,7 +230,7 @@ func CreateTestJWTAuthenticator(ctx context.Context, t *testing.T, spec auth1alp Spec: spec, }, metav1.CreateOptions{}) require.NoError(t, err, "could not create test JWTAuthenticator") - t.Logf("created test JWTAuthenticator %s/%s", jwtAuthenticator.Namespace, jwtAuthenticator.Name) + t.Logf("created test JWTAuthenticator %s", jwtAuthenticator.Name) t.Cleanup(func() { t.Helper() @@ -238,7 +238,7 @@ func CreateTestJWTAuthenticator(ctx context.Context, t *testing.T, spec auth1alp deleteCtx, cancel := context.WithTimeout(context.Background(), time.Minute) defer cancel() err := jwtAuthenticators.Delete(deleteCtx, jwtAuthenticator.Name, metav1.DeleteOptions{}) - require.NoErrorf(t, err, "could not cleanup test JWTAuthenticator %s/%s", jwtAuthenticator.Namespace, jwtAuthenticator.Name) + require.NoErrorf(t, err, "could not cleanup test JWTAuthenticator %s", jwtAuthenticator.Name) }) return corev1.TypedLocalObjectReference{