File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,15 @@ func (s *MethodTestSuite) TestGroup() {
314
314
_ = dbgen .GroupMember (s .T (), db , database.GroupMember {})
315
315
check .Args (g .ID ).Asserts (g , rbac .ActionRead )
316
316
}))
317
+ s .Run ("GetUserGroupNames" , s .Subtest (func (db database.Store , check * expects ) {
318
+ o := dbgen .Organization (s .T (), db , database.Organization {})
319
+ u := dbgen .User (s .T (), db , database.User {})
320
+ check .Args (database.GetUserGroupNamesParams {
321
+ OrganizationID : o .ID ,
322
+ UserID : u .ID ,
323
+ }).Asserts (rbac .ResourceUserObject (u .ID ), rbac .ActionRead )
324
+ }))
325
+
317
326
s .Run ("InsertAllUsersGroup" , s .Subtest (func (db database.Store , check * expects ) {
318
327
o := dbgen .Organization (s .T (), db , database.Organization {})
319
328
check .Args (o .ID ).Asserts (rbac .ResourceGroup .InOrg (o .ID ), rbac .ActionCreate )
You can’t perform that action at this time.
0 commit comments