We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24332f4 commit 7af0b60Copy full SHA for 7af0b60
coderd/database/dbauthz/dbauthz_test.go
@@ -999,7 +999,17 @@ func (s *MethodTestSuite) TestOrganization() {
999
LimitOpt: 0,
1000
}).Asserts(
1001
rbac.ResourceOrganizationMember.InOrg(o.ID), policy.ActionRead,
1002
- ).Returns(mem)
+ ).Returns([]database.PaginatedOrganizationMembersRow{
1003
+ {
1004
+ OrganizationMember: mem,
1005
+ Username: u.Username,
1006
+ AvatarURL: u.AvatarURL,
1007
+ Name: u.Name,
1008
+ Email: u.Email,
1009
+ GlobalRoles: u.RBACRoles,
1010
+ Count: 1,
1011
+ },
1012
+ })
1013
}))
1014
s.Run("UpdateMemberRoles", s.Subtest(func(db database.Store, check *expects) {
1015
o := dbgen.Organization(s.T(), db, database.Organization{})
0 commit comments