@@ -328,6 +328,7 @@ func TestTemplateEdit(t *testing.T) {
328
328
assert .Equal (t , template .AutostopRequirement .DaysOfWeek , updated .AutostopRequirement .DaysOfWeek )
329
329
assert .Equal (t , template .AutostopRequirement .Weeks , updated .AutostopRequirement .Weeks )
330
330
assert .Equal (t , template .AutostartRequirement .DaysOfWeek , updated .AutostartRequirement .DaysOfWeek )
331
+ assert .Equal (t , template .AutostartRequirement .DaysOfWeek , updated .AutostartRequirement .DaysOfWeek )
331
332
})
332
333
}
333
334
})
@@ -443,6 +444,7 @@ func TestTemplateEdit(t *testing.T) {
443
444
assert .Equal (t , template .DefaultTTLMillis , updated .DefaultTTLMillis )
444
445
assert .Equal (t , template .AutostopRequirement .DaysOfWeek , updated .AutostopRequirement .DaysOfWeek )
445
446
assert .Equal (t , template .AutostopRequirement .Weeks , updated .AutostopRequirement .Weeks )
447
+ assert .Equal (t , template .AutostartRequirement .DaysOfWeek , updated .AutostartRequirement .DaysOfWeek )
446
448
})
447
449
}
448
450
})
@@ -543,6 +545,7 @@ func TestTemplateEdit(t *testing.T) {
543
545
assert .Equal (t , template .DefaultTTLMillis , updated .DefaultTTLMillis )
544
546
assert .Equal (t , template .AutostopRequirement .DaysOfWeek , updated .AutostopRequirement .DaysOfWeek )
545
547
assert .Equal (t , template .AutostopRequirement .Weeks , updated .AutostopRequirement .Weeks )
548
+ assert .Equal (t , template .AutostartRequirement .DaysOfWeek , updated .AutostartRequirement .DaysOfWeek )
546
549
})
547
550
})
548
551
// TODO(@dean): remove this test when we remove max_ttl
@@ -815,6 +818,7 @@ func TestTemplateEdit(t *testing.T) {
815
818
assert .Equal (t , template .DefaultTTLMillis , updated .DefaultTTLMillis )
816
819
assert .Equal (t , template .AutostopRequirement .DaysOfWeek , updated .AutostopRequirement .DaysOfWeek )
817
820
assert .Equal (t , template .AutostopRequirement .Weeks , updated .AutostopRequirement .Weeks )
821
+ assert .Equal (t , template .AutostartRequirement .DaysOfWeek , updated .AutostartRequirement .DaysOfWeek )
818
822
assert .Equal (t , template .AllowUserAutostart , updated .AllowUserAutostart )
819
823
assert .Equal (t , template .AllowUserAutostop , updated .AllowUserAutostop )
820
824
assert .Equal (t , template .FailureTTLMillis , updated .FailureTTLMillis )
@@ -910,6 +914,7 @@ func TestTemplateEdit(t *testing.T) {
910
914
assert .Equal (t , template .DefaultTTLMillis , updated .DefaultTTLMillis )
911
915
assert .Equal (t , template .AutostopRequirement .DaysOfWeek , updated .AutostopRequirement .DaysOfWeek )
912
916
assert .Equal (t , template .AutostopRequirement .Weeks , updated .AutostopRequirement .Weeks )
917
+ assert .Equal (t , template .AutostartRequirement .DaysOfWeek , updated .AutostartRequirement .DaysOfWeek )
913
918
assert .Equal (t , template .AllowUserAutostart , updated .AllowUserAutostart )
914
919
assert .Equal (t , template .AllowUserAutostop , updated .AllowUserAutostop )
915
920
assert .Equal (t , template .FailureTTLMillis , updated .FailureTTLMillis )
@@ -1009,6 +1014,7 @@ func TestTemplateEdit(t *testing.T) {
1009
1014
assert .Equal (t , template .DefaultTTLMillis , updated .DefaultTTLMillis )
1010
1015
assert .Equal (t , template .AutostopRequirement .DaysOfWeek , updated .AutostopRequirement .DaysOfWeek )
1011
1016
assert .Equal (t , template .AutostopRequirement .Weeks , updated .AutostopRequirement .Weeks )
1017
+ assert .Equal (t , template .AutostartRequirement .DaysOfWeek , updated .AutostartRequirement .DaysOfWeek )
1012
1018
assert .Equal (t , template .AllowUserAutostart , updated .AllowUserAutostart )
1013
1019
assert .Equal (t , template .AllowUserAutostop , updated .AllowUserAutostop )
1014
1020
assert .Equal (t , template .FailureTTLMillis , updated .FailureTTLMillis )
0 commit comments