Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36d329c

Browse files
committed
fix dbauthz test
1 parent 7df41c5 commit 36d329c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/dbauthz/dbauthz_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2458,7 +2458,7 @@ func (s *MethodTestSuite) TestWorkspace() {
24582458
OrganizationID: o.ID,
24592459
AutomaticUpdates: database.AutomaticUpdatesNever,
24602460
TemplateID: tpl.ID,
2461-
}).Asserts(rbac.ResourceWorkspace.WithOwner(u.ID.String()).InOrg(o.ID), policy.ActionCreate)
2461+
}).Asserts(tpl, policy.ActionRead, tpl, policy.ActionUse, rbac.ResourceWorkspace.WithOwner(u.ID.String()).InOrg(o.ID), policy.ActionCreate)
24622462
}))
24632463
s.Run("Start/InsertWorkspaceBuild", s.Subtest(func(db database.Store, check *expects) {
24642464
u := dbgen.User(s.T(), db, database.User{})

0 commit comments

Comments
 (0)