@@ -47,53 +47,53 @@ func TestIntegration(t *testing.T) {
4747 WithInput (
4848 testhelpers .NewTemporalWorkerDeploymentBuilder ().
4949 WithManualStrategy ().
50- WithTargetTemplate ("v1" ),
50+ WithTargetTemplate ("v1.0 " ),
5151 ).
5252 WithWaitTime (5 * time .Second ). // wait before checking to confirm no change
5353 WithExpectedStatus (
5454 testhelpers .NewStatusBuilder ().
55- WithTargetVersion ("v1" , temporaliov1alpha1 .VersionStatusInactive , - 1 , true , false ),
55+ WithTargetVersion ("v1.0 " , temporaliov1alpha1 .VersionStatusInactive , - 1 , true , false ),
5656 ),
5757 "all-at-once-rollout-2-replicas" : testhelpers .NewTestCase ().
5858 WithInput (
5959 testhelpers .NewTemporalWorkerDeploymentBuilder ().
6060 WithAllAtOnceStrategy ().
6161 WithReplicas (2 ).
62- WithTargetTemplate ("v1" ),
62+ WithTargetTemplate ("v1.0 " ),
6363 ).
6464 WithExpectedStatus (
6565 testhelpers .NewStatusBuilder ().
66- WithTargetVersion ("v1" , temporaliov1alpha1 .VersionStatusCurrent , - 1 , true , false ).
67- WithCurrentVersion ("v1" , true , false ),
66+ WithTargetVersion ("v1.0 " , temporaliov1alpha1 .VersionStatusCurrent , - 1 , true , false ).
67+ WithCurrentVersion ("v1.0 " , true , false ),
6868 ),
6969 "progressive-rollout-no-unversioned-pollers-expect-all-at-once" : testhelpers .NewTestCase ().
7070 WithInput (
7171 testhelpers .NewTemporalWorkerDeploymentBuilder ().
7272 WithProgressiveStrategy (testhelpers .ProgressiveStep (5 , time .Hour )).
73- WithTargetTemplate ("v1" ),
73+ WithTargetTemplate ("v1.0 " ),
7474 ).
7575 WithExpectedStatus (
7676 testhelpers .NewStatusBuilder ().
77- WithTargetVersion ("v1" , temporaliov1alpha1 .VersionStatusCurrent , - 1 , true , false ).
78- WithCurrentVersion ("v1" , true , false ),
77+ WithTargetVersion ("v1.0 " , temporaliov1alpha1 .VersionStatusCurrent , - 1 , true , false ).
78+ WithCurrentVersion ("v1.0 " , true , false ),
7979 ),
8080 //// TODO(carlydf): this won't work until the controller detects unversioned pollers
8181 // "progressive-rollout-yes-unversioned-pollers-expect-first-step": testhelpers.NewTestCase().
8282 // WithInput(
8383 // testhelpers.NewTemporalWorkerDeploymentBuilder().
8484 // WithProgressiveStrategy(testhelpers.ProgressiveStep(5, time.Hour)).
85- // WithTargetTemplate("v1"),
85+ // WithTargetTemplate("v1.0 "),
8686 // ).
8787 // WithSetupFunction(setupUnversionedPoller).
8888 // WithExpectedStatus(
8989 // testhelpers.NewStatusBuilder().
90- // WithTargetVersion("v1", temporaliov1alpha1.VersionStatusRamping, 5, true, false),
90+ // WithTargetVersion("v1.0 ", temporaliov1alpha1.VersionStatusRamping, 5, true, false),
9191 // ),
9292 "nth-progressive-rollout-expect-first-step" : testhelpers .NewTestCase ().
9393 WithInput (
9494 testhelpers .NewTemporalWorkerDeploymentBuilder ().
9595 WithProgressiveStrategy (testhelpers .ProgressiveStep (5 , time .Hour )).
96- WithTargetTemplate ("v1" ).
96+ WithTargetTemplate ("v1.0 " ).
9797 WithStatus (
9898 testhelpers .NewStatusBuilder ().
9999 WithTargetVersion ("v0" , temporaliov1alpha1 .VersionStatusCurrent , - 1 , true , true ).
@@ -105,14 +105,14 @@ func TestIntegration(t *testing.T) {
105105 ).
106106 WithExpectedStatus (
107107 testhelpers .NewStatusBuilder ().
108- WithTargetVersion ("v1" , temporaliov1alpha1 .VersionStatusRamping , 5 , true , false ),
108+ WithTargetVersion ("v1.0 " , temporaliov1alpha1 .VersionStatusRamping , 5 , true , false ),
109109 ),
110110 "nth-progressive-rollout-with-success-gate" : testhelpers .NewTestCase ().
111111 WithInput (
112112 testhelpers .NewTemporalWorkerDeploymentBuilder ().
113113 WithProgressiveStrategy (testhelpers .ProgressiveStep (5 , time .Hour )).
114114 WithGate (true ).
115- WithTargetTemplate ("v1" ).
115+ WithTargetTemplate ("v1.0 " ).
116116 WithStatus (
117117 testhelpers .NewStatusBuilder ().
118118 WithTargetVersion ("v0" , temporaliov1alpha1 .VersionStatusCurrent , - 1 , true , true ).
@@ -124,14 +124,14 @@ func TestIntegration(t *testing.T) {
124124 ).
125125 WithExpectedStatus (
126126 testhelpers .NewStatusBuilder ().
127- WithTargetVersion ("v1" , temporaliov1alpha1 .VersionStatusRamping , 5 , true , false ),
127+ WithTargetVersion ("v1.0 " , temporaliov1alpha1 .VersionStatusRamping , 5 , true , false ),
128128 ),
129129 "nth-progressive-rollout-with-failed-gate" : testhelpers .NewTestCase ().
130130 WithInput (
131131 testhelpers .NewTemporalWorkerDeploymentBuilder ().
132132 WithProgressiveStrategy (testhelpers .ProgressiveStep (5 , time .Hour )).
133133 WithGate (false ).
134- WithTargetTemplate ("v1" ).
134+ WithTargetTemplate ("v1.0 " ).
135135 WithStatus (
136136 testhelpers .NewStatusBuilder ().
137137 WithTargetVersion ("v0" , temporaliov1alpha1 .VersionStatusCurrent , - 1 , true , true ).
@@ -144,52 +144,52 @@ func TestIntegration(t *testing.T) {
144144 WithWaitTime (5 * time .Second ).
145145 WithExpectedStatus (
146146 testhelpers .NewStatusBuilder ().
147- WithTargetVersion ("v1" , temporaliov1alpha1 .VersionStatusInactive , - 1 , true , false ).
147+ WithTargetVersion ("v1.0 " , temporaliov1alpha1 .VersionStatusInactive , - 1 , true , false ).
148148 WithCurrentVersion ("v0" , true , true ),
149149 ),
150150 "failed-gate-is-not-scaled-down-while-target" : testhelpers .NewTestCase ().
151151 WithInput (
152152 testhelpers .NewTemporalWorkerDeploymentBuilder ().
153153 WithAllAtOnceStrategy ().
154154 WithGate (false ).
155- WithTargetTemplate ("v1" ),
155+ WithTargetTemplate ("v1.0 " ),
156156 ).
157157 WithWaitTime (5 * time .Second ).
158158 WithExpectedStatus (
159159 testhelpers .NewStatusBuilder ().
160- WithTargetVersion ("v1" , temporaliov1alpha1 .VersionStatusInactive , - 1 , true , false ),
160+ WithTargetVersion ("v1.0 " , temporaliov1alpha1 .VersionStatusInactive , - 1 , true , false ),
161161 ),
162162 "failed-gate-is-scaled-down-when-deprecated" : testhelpers .NewTestCase ().
163163 WithInput (
164164 testhelpers .NewTemporalWorkerDeploymentBuilder ().
165165 WithAllAtOnceStrategy ().
166- WithTargetTemplate ("v2" ).
166+ WithTargetTemplate ("v2.0 " ).
167167 WithStatus (
168168 testhelpers .NewStatusBuilder ().
169- WithTargetVersion ("v1" , temporaliov1alpha1 .VersionStatusInactive , - 1 , true , true ).
169+ WithTargetVersion ("v1.0 " , temporaliov1alpha1 .VersionStatusInactive , - 1 , true , true ).
170170 WithDeprecatedVersions (
171171 testhelpers .NewDeprecatedVersionInfo ("v0" , temporaliov1alpha1 .VersionStatusDrained , true , true , true ),
172172 ),
173173 ),
174174 ).
175175 WithExistingDeployments (
176176 testhelpers .NewDeploymentInfo ("v0" , 1 ),
177- testhelpers .NewDeploymentInfo ("v1" , 1 ),
177+ testhelpers .NewDeploymentInfo ("v1.0 " , 1 ),
178178 ).
179179 WithWaitTime (5 * time .Second ).
180180 WithExpectedStatus (
181181 testhelpers .NewStatusBuilder ().
182- WithTargetVersion ("v2" , temporaliov1alpha1 .VersionStatusCurrent , - 1 , true , false ).
183- WithCurrentVersion ("v2" , true , false ).
182+ WithTargetVersion ("v2.0 " , temporaliov1alpha1 .VersionStatusCurrent , - 1 , true , false ).
183+ WithCurrentVersion ("v2.0 " , true , false ).
184184 WithDeprecatedVersions (
185185 testhelpers .NewDeprecatedVersionInfo ("v0" , temporaliov1alpha1 .VersionStatusDrained , true , false , true ),
186- testhelpers .NewDeprecatedVersionInfo ("v1" , temporaliov1alpha1 .VersionStatusInactive , true , false , true ),
186+ testhelpers .NewDeprecatedVersionInfo ("v1.0 " , temporaliov1alpha1 .VersionStatusInactive , true , false , true ),
187187 ),
188188 ).
189189 WithExpectedDeployments ( // note: right now this is only checked for deprecated versions, TODO(carlydf) add for non-deprecated too
190190 testhelpers .NewDeploymentInfo ("v0" , 1 ),
191- testhelpers .NewDeploymentInfo ("v1" , 0 ),
192- testhelpers .NewDeploymentInfo ("v2" , 1 ),
191+ testhelpers .NewDeploymentInfo ("v1.0 " , 0 ),
192+ testhelpers .NewDeploymentInfo ("v2.0 " , 1 ),
193193 ),
194194 "nth-rollout-blocked-by-modifier" : testhelpers .NewTestCase ().
195195 WithInput (
0 commit comments