mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add groups and group members to telemetry snapshot (#13655)
* feat: Added in groups and groups members to telemetry snapshot * feat: adding in test to dbauthz for getting group members and groups
This commit is contained in:
@@ -105,7 +105,7 @@ func TestGenerator(t *testing.T) {
|
||||
exp := []database.User{u}
|
||||
dbgen.GroupMember(t, db, database.GroupMember{GroupID: g.ID, UserID: u.ID})
|
||||
|
||||
require.Equal(t, exp, must(db.GetGroupMembers(context.Background(), g.ID)))
|
||||
require.Equal(t, exp, must(db.GetGroupMembersByGroupID(context.Background(), g.ID)))
|
||||
})
|
||||
|
||||
t.Run("Organization", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user