Skip to content

Commit 395be1c

Browse files
committed
Add comment on newbenchmark
1 parent 9225793 commit 395be1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coderd/rbac/authz_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,14 @@ func benchmarkUserCases() (cases []benchmarkCase, users uuid.UUID, orgs []uuid.U
9797
},
9898
},
9999
{
100+
// This test should only use static roles. AKA no org roles.
100101
Name: "StaticRoles",
101102
Actor: rbac.Subject{
102103
// Give some extra roles that an admin might have
103104
Roles: rbac.RoleNames{
104105
"auditor", rbac.RoleMember(), rbac.RoleMember(),
105-
rbac.RoleTemplateAdmin(), rbac.RoleUserAdmin()},
106+
rbac.RoleTemplateAdmin(), rbac.RoleUserAdmin(),
107+
},
106108
ID: user.String(),
107109
Scope: rbac.ScopeAll,
108110
Groups: noiseGroups,

0 commit comments

Comments
 (0)