@@ -69,9 +69,9 @@ func TestIntegration(t *testing.T) {
6969
7070 tests := map [string ]testCase {
7171 "all-at-once-rollout-2-replicas" : {
72- input : testhelpers .ModifyObj (common .MakeTWDWithName ("all-at-once-rollout-2-replicas" ), func (obj * temporaliov1alpha1.TemporalWorkerDeployment ) * temporaliov1alpha1.TemporalWorkerDeployment {
72+ input : testhelpers .ModifyObj (testhelpers .MakeTWDWithName ("all-at-once-rollout-2-replicas" ), func (obj * temporaliov1alpha1.TemporalWorkerDeployment ) * temporaliov1alpha1.TemporalWorkerDeployment {
7373 obj .Spec .RolloutStrategy .Strategy = temporaliov1alpha1 .UpdateAllAtOnce
74- obj .Spec .Template = common .MakeHelloWorldPodSpec ("v1" )
74+ obj .Spec .Template = testhelpers .MakeHelloWorldPodSpec ("v1" )
7575 replicas := int32 (2 )
7676 obj .Spec .Replicas = & replicas
7777 obj .Spec .WorkerOptions = temporaliov1alpha1.WorkerOptions {
@@ -90,12 +90,12 @@ func TestIntegration(t *testing.T) {
9090 TargetVersion : nil ,
9191 CurrentVersion : & temporaliov1alpha1.CurrentWorkerDeploymentVersion {
9292 BaseWorkerDeploymentVersion : temporaliov1alpha1.BaseWorkerDeploymentVersion {
93- VersionID : common .MakeVersionId (testNamespace .Name , "all-at-once-rollout-2-replicas" , "v1" ),
93+ VersionID : testhelpers .MakeVersionId (testNamespace .Name , "all-at-once-rollout-2-replicas" , "v1" ),
9494 Deployment : & corev1.ObjectReference {
9595 Namespace : testNamespace .Name ,
9696 Name : k8s .ComputeVersionedDeploymentName (
9797 "all-at-once-rollout-2-replicas" ,
98- common .MakeBuildId ("all-at-once-rollout-2-replicas" , "v1" , nil ),
98+ testhelpers .MakeBuildId ("all-at-once-rollout-2-replicas" , "v1" , nil ),
9999 ),
100100 },
101101 },
@@ -107,12 +107,12 @@ func TestIntegration(t *testing.T) {
107107 },
108108 },
109109 "progressive-rollout-expect-first-step" : {
110- input : testhelpers .ModifyObj (common .MakeTWDWithName ("progressive-rollout-expect-first-step" ), func (obj * temporaliov1alpha1.TemporalWorkerDeployment ) * temporaliov1alpha1.TemporalWorkerDeployment {
110+ input : testhelpers .ModifyObj (testhelpers .MakeTWDWithName ("progressive-rollout-expect-first-step" ), func (obj * temporaliov1alpha1.TemporalWorkerDeployment ) * temporaliov1alpha1.TemporalWorkerDeployment {
111111 obj .Spec .RolloutStrategy .Strategy = temporaliov1alpha1 .UpdateProgressive
112112 obj .Spec .RolloutStrategy .Steps = []temporaliov1alpha1.RolloutStep {
113- {5 , metav1.Duration {time .Hour }},
113+ {RampPercentage : 5 , PauseDuration : metav1.Duration {Duration : time .Hour }},
114114 }
115- obj .Spec .Template = common .MakeHelloWorldPodSpec ("v1" )
115+ obj .Spec .Template = testhelpers .MakeHelloWorldPodSpec ("v1" )
116116 obj .Spec .WorkerOptions = temporaliov1alpha1.WorkerOptions {
117117 TemporalConnection : "progressive-rollout-expect-first-step" ,
118118 TemporalNamespace : ts .GetDefaultNamespace (),
@@ -128,12 +128,12 @@ func TestIntegration(t *testing.T) {
128128 expectedStatus : & temporaliov1alpha1.TemporalWorkerDeploymentStatus {
129129 TargetVersion : & temporaliov1alpha1.TargetWorkerDeploymentVersion {
130130 BaseWorkerDeploymentVersion : temporaliov1alpha1.BaseWorkerDeploymentVersion {
131- VersionID : common .MakeVersionId (testNamespace .Name , "progressive-rollout-expect-first-step" , "v1" ),
131+ VersionID : testhelpers .MakeVersionId (testNamespace .Name , "progressive-rollout-expect-first-step" , "v1" ),
132132 Deployment : & corev1.ObjectReference {
133133 Namespace : testNamespace .Name ,
134134 Name : k8s .ComputeVersionedDeploymentName (
135135 "progressive-rollout-expect-first-step" ,
136- common .MakeBuildId ("progressive-rollout-expect-first-step" , "v1" , nil ),
136+ testhelpers .MakeBuildId ("progressive-rollout-expect-first-step" , "v1" , nil ),
137137 ),
138138 },
139139 },
@@ -145,12 +145,12 @@ func TestIntegration(t *testing.T) {
145145 CurrentVersion : nil ,
146146 RampingVersion : & temporaliov1alpha1.TargetWorkerDeploymentVersion {
147147 BaseWorkerDeploymentVersion : temporaliov1alpha1.BaseWorkerDeploymentVersion {
148- VersionID : common .MakeVersionId (testNamespace .Name , "progressive-rollout-expect-first-step" , "v1" ),
148+ VersionID : testhelpers .MakeVersionId (testNamespace .Name , "progressive-rollout-expect-first-step" , "v1" ),
149149 Deployment : & corev1.ObjectReference {
150150 Namespace : testNamespace .Name ,
151151 Name : k8s .ComputeVersionedDeploymentName (
152152 "progressive-rollout-expect-first-step" ,
153- common .MakeBuildId ("progressive-rollout-expect-first-step" , "v1" , nil ),
153+ testhelpers .MakeBuildId ("progressive-rollout-expect-first-step" , "v1" , nil ),
154154 ),
155155 },
156156 },
0 commit comments