@@ -66,6 +66,7 @@ func TestScheduledJob_Template(t *testing.T) {
66
66
require .Equal (t , template.WorkloadOpts {
67
67
WorkloadType : manifestinfo .ScheduledJobType ,
68
68
ScheduleExpression : "cron(0 0 * * ? *)" ,
69
+ ScheduleTimezone : "UTC" ,
69
70
StateMachine : & template.StateMachineOpts {
70
71
Timeout : aws .Int (5400 ),
71
72
Retries : aws .Int (3 ),
@@ -102,6 +103,7 @@ func TestScheduledJob_Template(t *testing.T) {
102
103
AddonsExtraParams : `ServiceName: !GetAtt Service.Name
103
104
DiscoveryServiceArn: !GetAtt DiscoveryService.Arn` ,
104
105
ScheduleExpression : "cron(0 0 * * ? *)" ,
106
+ ScheduleTimezone : "UTC" ,
105
107
StateMachine : & template.StateMachineOpts {
106
108
Timeout : aws .Int (5400 ),
107
109
Retries : aws .Int (3 ),
@@ -450,6 +452,7 @@ func TestScheduledJob_Parameters(t *testing.T) {
450
452
Dockerfile : "frontend/Dockerfile" ,
451
453
},
452
454
Schedule : "@daily" ,
455
+ Timezone : "GMT" ,
453
456
}
454
457
testScheduledJobManifest := manifest .NewScheduledJob (baseProps )
455
458
testScheduledJobManifest .Count = manifest.Count {
@@ -504,6 +507,10 @@ func TestScheduledJob_Parameters(t *testing.T) {
504
507
ParameterKey : aws .String (ScheduledJobScheduleParamKey ),
505
508
ParameterValue : aws .String ("cron(0 0 * * ? *)" ),
506
509
},
510
+ {
511
+ ParameterKey : aws .String (ScheduledJobScheduleTimezoneParamKey ),
512
+ ParameterValue : aws .String ("GMT" ),
513
+ },
507
514
}
508
515
testCases := map [string ]struct {
509
516
httpsEnabled bool
@@ -600,6 +607,7 @@ func TestScheduledJob_SerializedParameters(t *testing.T) {
600
607
"EnvName": "test",
601
608
"LogRetention": "30",
602
609
"Schedule": "cron(0 0 * * ? *)",
610
+ "ScheduleTimezone": "UTC",
603
611
"TaskCPU": "256",
604
612
"TaskCount": "1",
605
613
"TaskMemory": "512",
0 commit comments