Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Dec 12, 2023
1 parent 8b4348b commit 84067f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/auth/auth_with_roles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 84067f6

Please sign in to comment.