Skip to content

test: add unit test to verify group permission behavior #14223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update coderd/database/dbauthz/groupsauth_test.go
Co-authored-by: Cian Johnston <cian@coder.com>
  • Loading branch information
Emyrk and johnstcn authored Aug 12, 2024
commit e14728ee862e838d63273e2ec9f887443b80e096
3 changes: 1 addition & 2 deletions coderd/database/dbauthz/groupsauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ func TestGroupsAuth(t *testing.T) {

authz := rbac.NewAuthorizer(prometheus.NewRegistry())

db := dbmem.New()
db = dbauthz.New(db, authz, slogtest.Make(t, &slogtest.Options{
db := dbauthz.New(dbmem.New(), authz, slogtest.Make(t, &slogtest.Options{
IgnoreErrors: true,
}), coderdtest.AccessControlStorePointer())

Expand Down
Loading