Fixed integration test compile failures after rebase

This commit is contained in:
Margo Crawford 2021-02-03 11:32:29 -08:00
parent 23e8c35918
commit 6b46bae6c6

View File

@ -1,4 +1,4 @@
// Copyright 2020 the Pinniped contributors. All Rights Reserved. // Copyright 2020-2021 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
package integration package integration
@ -35,7 +35,7 @@ func TestImpersonationProxy(t *testing.T) {
defer cancel() defer cancel()
// Create a client using the admin kubeconfig. // Create a client using the admin kubeconfig.
adminClient := library.NewClientset(t) // adminClient := library.NewClientset(t)
// Create a WebhookAuthenticator. // Create a WebhookAuthenticator.
authenticator := library.CreateTestWebhookAuthenticator(ctx, t) authenticator := library.CreateTestWebhookAuthenticator(ctx, t)
@ -61,13 +61,13 @@ func TestImpersonationProxy(t *testing.T) {
t.Run( t.Run(
"access as user", "access as user",
library.AccessAsUserTest(ctx, adminClient, env.TestUser.ExpectedUsername, clientset), library.AccessAsUserTest(ctx, env.TestUser.ExpectedUsername, clientset),
) )
for _, group := range env.TestUser.ExpectedGroups { for _, group := range env.TestUser.ExpectedGroups {
group := group group := group
t.Run( t.Run(
"access as group "+group, "access as group "+group,
library.AccessAsGroupTest(ctx, adminClient, group, clientset), library.AccessAsGroupTest(ctx, group, clientset),
) )
} }
} }