From 84067f66f72d4ef7883119d4edda1c526f223cb0 Mon Sep 17 00:00:00 2001 From: joerger Date: Mon, 11 Dec 2023 19:51:28 -0800 Subject: [PATCH] Fix unit tests. --- lib/auth/auth_with_roles_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/auth/auth_with_roles_test.go b/lib/auth/auth_with_roles_test.go index 6b6604729959d..6979ed7875888 100644 --- a/lib/auth/auth_with_roles_test.go +++ b/lib/auth/auth_with_roles_test.go @@ -1813,6 +1813,7 @@ func serverWithAllowRules(t *testing.T, srv *TestAuthServer, allowRules []types. localUser := authz.LocalUser{Username: username, Identity: tlsca.Identity{Username: username}} authContext, err := authz.ContextForLocalUser(ctx, localUser, srv.AuthServer, srv.ClusterName, true /* disableDeviceAuthz */) require.NoError(t, err) + authContext.AdminActionAuthorized = true return &ServerWithRoles{ authServer: srv.AuthServer,