concierge_impersonation_proxy_test.go: Fix lint error in previous commit

This commit is contained in:
Ryan Richard 2021-03-11 10:04:24 -08:00
parent 34accc3dee
commit a918e9fb97

View File

@ -412,7 +412,7 @@ func TestImpersonationProxy(t *testing.T) { //nolint:gocyclo // yeah, it's compl
impersonationProxyServiceAccountPinnipedConciergeClient := newImpersonationProxyClientWithCredentials( impersonationProxyServiceAccountPinnipedConciergeClient := newImpersonationProxyClientWithCredentials(
&loginv1alpha1.ClusterCredential{Token: createServiceAccountToken(ctx, t, adminClient, namespaceName)}, &loginv1alpha1.ClusterCredential{Token: createServiceAccountToken(ctx, t, adminClient, namespaceName)},
impersonationProxyURL, impersonationProxyCACertPEM, "").PinnipedConcierge impersonationProxyURL, impersonationProxyCACertPEM, "").PinnipedConcierge
whoAmI, err = impersonationProxyServiceAccountPinnipedConciergeClient.IdentityV1alpha1().WhoAmIRequests(). _, err = impersonationProxyServiceAccountPinnipedConciergeClient.IdentityV1alpha1().WhoAmIRequests().
Create(ctx, &identityv1alpha1.WhoAmIRequest{}, metav1.CreateOptions{}) Create(ctx, &identityv1alpha1.WhoAmIRequest{}, metav1.CreateOptions{})
require.Error(t, err) require.Error(t, err)
// The server checks that we have a UID in the request and rejects it with a 422 Unprocessable Entity. // The server checks that we have a UID in the request and rejects it with a 422 Unprocessable Entity.