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

Skip to content

Commit ffee414

Browse files
committed
fix dbauthz test
1 parent 877a176 commit ffee414

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
@@ -2452,7 +2452,7 @@ func (s *MethodTestSuite) TestWorkspace() {
24522452
OrganizationID: o.ID,
24532453
AutomaticUpdates: database.AutomaticUpdatesNever,
24542454
TemplateID: tpl.ID,
2455-
}).Asserts(rbac.ResourceWorkspace.WithOwner(u.ID.String()).InOrg(o.ID), policy.ActionCreate)
2455+
}).Asserts(tpl, policy.ActionRead, tpl, policy.ActionUse, rbac.ResourceWorkspace.WithOwner(u.ID.String()).InOrg(o.ID), policy.ActionCreate)
24562456
}))
24572457
s.Run("Start/InsertWorkspaceBuild", s.Subtest(func(db database.Store, check *expects) {
24582458
u := dbgen.User(s.T(), db, database.User{})

0 commit comments

Comments
 (0)