Skip to content

Commit 6ebe2a1

Browse files
committed
fix template perms in unit test
1 parent c66296e commit 6ebe2a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/insights_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
agentproto "github.com/coder/coder/v2/agent/proto"
2424
"github.com/coder/coder/v2/coderd/coderdtest"
2525
"github.com/coder/coder/v2/coderd/database"
26+
"github.com/coder/coder/v2/coderd/database/db2sdk"
2627
"github.com/coder/coder/v2/coderd/database/dbauthz"
2728
"github.com/coder/coder/v2/coderd/database/dbgen"
2829
"github.com/coder/coder/v2/coderd/database/dbrollup"
@@ -675,7 +676,7 @@ func TestTemplateInsights_Golden(t *testing.T) {
675676
OrganizationID: firstUser.OrganizationID,
676677
CreatedBy: firstUser.UserID,
677678
GroupACL: database.TemplateACL{
678-
firstUser.OrganizationID.String(): []policy.Action{policy.ActionRead},
679+
firstUser.OrganizationID.String(): db2sdk.TemplateRoleActions(codersdk.TemplateRoleUse),
679680
},
680681
})
681682
err := db.UpdateTemplateVersionByID(context.Background(), database.UpdateTemplateVersionByIDParams{

0 commit comments

Comments
 (0)