@@ -45,9 +45,11 @@ func TestTemplateUpdateBuildDeadlines(t *testing.T) {
45
45
},
46
46
})
47
47
templateVersion = dbgen .TemplateVersion (t , db , database.TemplateVersion {
48
- CreatedBy : quietUser .ID ,
49
- JobID : templateJob .ID ,
48
+ OrganizationID : templateJob .OrganizationID ,
49
+ CreatedBy : quietUser .ID ,
50
+ JobID : templateJob .ID ,
50
51
})
52
+ organizationID = templateJob .OrganizationID
51
53
)
52
54
53
55
const userQuietHoursSchedule = "CRON_TZ=UTC 0 0 * * *" // midnight UTC
@@ -201,17 +203,20 @@ func TestTemplateUpdateBuildDeadlines(t *testing.T) {
201
203
202
204
var (
203
205
template = dbgen .Template (t , db , database.Template {
206
+ OrganizationID : organizationID ,
204
207
ActiveVersionID : templateVersion .ID ,
205
208
CreatedBy : user .ID ,
206
209
})
207
210
ws = dbgen .Workspace (t , db , database.Workspace {
208
- OwnerID : user .ID ,
209
- TemplateID : template .ID ,
211
+ OrganizationID : organizationID ,
212
+ OwnerID : user .ID ,
213
+ TemplateID : template .ID ,
210
214
})
211
215
job = dbgen .ProvisionerJob (t , db , nil , database.ProvisionerJob {
212
- FileID : file .ID ,
213
- InitiatorID : user .ID ,
214
- Provisioner : database .ProvisionerTypeEcho ,
216
+ OrganizationID : organizationID ,
217
+ FileID : file .ID ,
218
+ InitiatorID : user .ID ,
219
+ Provisioner : database .ProvisionerTypeEcho ,
215
220
Tags : database.StringMap {
216
221
c .name : "yeah" ,
217
222
},
0 commit comments