Skip to content

Commit 4b674a8

Browse files
committed
fix rbac roles
1 parent 1c82c61 commit 4b674a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4495,6 +4495,7 @@ func (s *MethodTestSuite) TestNotifications() {
44954495
Title: "test title",
44964496
Content: "test content notification",
44974497
Icon: "test icon",
4498+
Actions: json.RawMessage("{}"),
44984499
})
44994500

45004501
check.Args(u.ID).Asserts(rbac.ResourceInboxNotification.WithID(notifID).WithOwner(u.ID.String()), policy.ActionRead).Returns([]database.InboxNotification{notif})
@@ -4517,6 +4518,7 @@ func (s *MethodTestSuite) TestNotifications() {
45174518
Title: "test title",
45184519
Content: "test content notification",
45194520
Icon: "test icon",
4521+
Actions: json.RawMessage("{}"),
45204522
})
45214523

45224524
check.Args(u.ID).Asserts(rbac.ResourceInboxNotification.WithID(notifID).WithOwner(u.ID.String()), policy.ActionRead).Returns([]database.InboxNotification{notif})
@@ -4542,6 +4544,7 @@ func (s *MethodTestSuite) TestNotifications() {
45424544
Title: "test title",
45434545
Content: "test content notification",
45444546
Icon: "test icon",
4547+
Actions: json.RawMessage("{}"),
45454548
})
45464549

45474550
check.Args(database.FetchInboxNotificationsByUserIDFilteredByTemplatesAndTargetsParams{
@@ -4571,6 +4574,7 @@ func (s *MethodTestSuite) TestNotifications() {
45714574
Title: "test title",
45724575
Content: "test content notification",
45734576
Icon: "test icon",
4577+
Actions: json.RawMessage("{}"),
45744578
})
45754579

45764580
check.Args(database.FetchUnreadInboxNotificationsByUserIDFilteredByTemplatesAndTargetsParams{
@@ -4600,6 +4604,7 @@ func (s *MethodTestSuite) TestNotifications() {
46004604
Title: "test title",
46014605
Content: "test content notification",
46024606
Icon: "test icon",
4607+
Actions: json.RawMessage("{}"),
46034608
})
46044609

46054610
check.Args(notifID).Asserts(rbac.ResourceInboxNotification.WithID(notifID).WithOwner(u.ID.String()), policy.ActionRead).Returns(notif)
@@ -4631,6 +4636,7 @@ func (s *MethodTestSuite) TestNotifications() {
46314636
Title: "test title",
46324637
Content: "test content notification",
46334638
Icon: "test icon",
4639+
Actions: json.RawMessage("{}"),
46344640
})
46354641

46364642
notif.ReadAt = sql.NullTime{Time: readAt, Valid: true}

0 commit comments

Comments
 (0)