File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2725,9 +2725,15 @@ func (s *MethodTestSuite) TestSystemFunctions() {
2725
2725
}).Asserts (rbac .ResourceSystem , policy .ActionRead )
2726
2726
}))
2727
2727
s .Run ("GetReportGeneratorLogByUserAndTemplate" , s .Subtest (func (db database.Store , check * expects ) {
2728
+ u := dbgen .User (s .T (), db , database.User {})
2729
+ _ = db .UpsertReportGeneratorLog (context .Background (), database.UpsertReportGeneratorLogParams {
2730
+ UserID : u .ID ,
2731
+ NotificationTemplateID : notifications .TemplateWorkspaceBuildsFailedReport ,
2732
+ LastGeneratedAt : dbtime .Now (),
2733
+ })
2728
2734
check .Args (database.GetReportGeneratorLogByUserAndTemplateParams {
2729
2735
UserID : uuid .New (),
2730
- NotificationTemplateID : uuid . New () ,
2736
+ NotificationTemplateID : notifications . TemplateWorkspaceBuildsFailedReport ,
2731
2737
}).Asserts (rbac .ResourceSystem , policy .ActionRead )
2732
2738
}))
2733
2739
s .Run ("GetWorkspaceBuildStatsByTemplates" , s .Subtest (func (db database.Store , check * expects ) {
You can’t perform that action at this time.
0 commit comments