Skip to content

Commit 406faba

Browse files
committed
dbauthz tests
1 parent 91d0eba commit 406faba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

coderd/database/dbauthz/dbauthz_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,13 @@ func (s *MethodTestSuite) TestLicense() {
626626
}
627627

628628
func (s *MethodTestSuite) TestOrganization() {
629+
s.Run("Deployment/OIDCClaimFields", s.Subtest(func(db database.Store, check *expects) {
630+
check.Args(uuid.Nil).Asserts(rbac.ResourceIdpsyncSettings, policy.ActionRead).Returns([]string{})
631+
}))
632+
s.Run("Organization/OIDCClaimFields", s.Subtest(func(db database.Store, check *expects) {
633+
id := uuid.New()
634+
check.Args(id).Asserts(rbac.ResourceIdpsyncSettings.InOrg(id), policy.ActionRead).Returns([]string{})
635+
}))
629636
s.Run("ByOrganization/GetGroups", s.Subtest(func(db database.Store, check *expects) {
630637
o := dbgen.Organization(s.T(), db, database.Organization{})
631638
a := dbgen.Group(s.T(), db, database.Group{OrganizationID: o.ID})

0 commit comments

Comments
 (0)