@@ -123,7 +123,7 @@ class WorkflowBuildersTests {
123123 @Test
124124 fun `Create Workflow Spec with StartContainers not null` () {
125125 val sc = getStartContainersRun()
126- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
126+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
127127 assertNotNull(workflowSpec)
128128 }
129129
@@ -136,7 +136,7 @@ class WorkflowBuildersTests {
136136 every { csmPlatformProperties.argo } returns argo
137137
138138 val sc = getStartContainersRun()
139- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
139+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
140140 val expected = mapOf (" kubernetes.io/os" to " linux" , " agentpool" to " highcpupool" )
141141
142142 assertEquals(expected, workflowSpec.nodeSelector)
@@ -151,7 +151,7 @@ class WorkflowBuildersTests {
151151 every { csmPlatformProperties.argo } returns argo
152152
153153 val sc = getStartContainersRunDefaultPool()
154- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
154+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
155155 val expected = mapOf (" kubernetes.io/os" to " linux" , " agentpool" to " basicpool" )
156156
157157 assertEquals(expected, workflowSpec.nodeSelector)
@@ -160,7 +160,7 @@ class WorkflowBuildersTests {
160160 @Test
161161 fun `Create Workflow Spec with StartContainers no pool` () {
162162 val sc = getStartContainersRunNoPool()
163- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
163+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
164164 val expected = mapOf (" kubernetes.io/os" to " linux" )
165165
166166 assertEquals(expected, workflowSpec.nodeSelector)
@@ -175,31 +175,31 @@ class WorkflowBuildersTests {
175175 every { csmPlatformProperties.argo } returns argo
176176
177177 val sc = getStartContainersRun()
178- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
178+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
179179
180180 assertEquals(" workflow" , workflowSpec.serviceAccountName)
181181 }
182182
183183 @Test
184184 fun `Create Workflow Spec with StartContainers Run name` () {
185185 val sc = getStartContainersRun()
186- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
186+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
187187
188188 assertEquals(" runContainer" , workflowSpec.templates?.getOrNull(0 )?.name)
189189 }
190190
191191 @Test
192192 fun `Create Workflow Spec with StartContainers Entrypoint FetchDataset` () {
193193 val sc = getStartContainers()
194- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
194+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
195195
196196 assertEquals(" entrypoint" , workflowSpec.entrypoint)
197197 }
198198
199199 @Test
200200 fun `Create Workflow Spec with StartContainers entrypoint template not null` () {
201201 val sc = getStartContainers()
202- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
202+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
203203
204204 val entrypointTemplate =
205205 workflowSpec.templates?.find { template -> template.name.equals(" entrypoint" ) }
@@ -209,7 +209,7 @@ class WorkflowBuildersTests {
209209 @Test
210210 fun `Create Workflow Spec with StartContainers entrypoint dag not null` () {
211211 val sc = getStartContainers()
212- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
212+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
213213
214214 val entrypointTemplate =
215215 workflowSpec.templates?.find { template -> template.name.equals(" entrypoint" ) }
@@ -220,7 +220,7 @@ class WorkflowBuildersTests {
220220 @Test
221221 fun `Create Workflow Spec with StartContainers entrypoint with dependencies dag valid` () {
222222 val sc = getStartContainersWithDependencies()
223- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
223+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
224224
225225 val entrypointTemplate =
226226 workflowSpec.templates?.find { template -> template.name.equals(" entrypoint" ) }
@@ -263,7 +263,7 @@ class WorkflowBuildersTests {
263263 @Test
264264 fun `Create Workflow Spec with StartContainers entrypoint dag valid` () {
265265 val sc = getStartContainers()
266- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
266+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
267267
268268 val entrypointTemplate =
269269 workflowSpec.templates?.find { template -> template.name.equals(" entrypoint" ) }
@@ -306,7 +306,7 @@ class WorkflowBuildersTests {
306306 @Test
307307 fun `Create Workflow Spec with StartContainers entrypoint dag dependencies valid` () {
308308 val sc = getStartContainers()
309- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
309+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
310310
311311 val entrypointTemplate =
312312 workflowSpec.templates?.find { template -> template.name.equals(" entrypoint" ) }
@@ -331,7 +331,7 @@ class WorkflowBuildersTests {
331331 @Test
332332 fun `Create Workflow Spec with StartContainers diamond` () {
333333 val sc = getStartContainersDiamond()
334- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
334+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
335335
336336 val entrypointTemplate =
337337 workflowSpec.templates?.find { template -> template.name.equals(" entrypoint" ) }
@@ -352,30 +352,30 @@ class WorkflowBuildersTests {
352352 @Test
353353 fun `Create Workflow with StartContainers not null` () {
354354 val sc = getStartContainers()
355- val workflow = buildWorkflow(csmPlatformProperties, sc)
355+ val workflow = buildWorkflow(csmPlatformProperties, sc, null )
356356 assertNotNull(workflow)
357357 }
358358
359359 @Test
360360 fun `Create Workflow with StartContainers generate name default` () {
361361 val sc = getStartContainers()
362- val workflow = buildWorkflow(csmPlatformProperties, sc)
362+ val workflow = buildWorkflow(csmPlatformProperties, sc, null )
363363 val expected = V1ObjectMeta ().generateName(" default-workflow-" )
364364 assertEquals(expected, workflow.metadata)
365365 }
366366
367367 @Test
368368 fun `Create Workflow with StartContainers generate name Scenario` () {
369369 val sc = getStartContainersNamed()
370- val workflow = buildWorkflow(csmPlatformProperties, sc)
370+ val workflow = buildWorkflow(csmPlatformProperties, sc, null )
371371 val expected = V1ObjectMeta ().generateName(" Scenario-1-" )
372372 assertEquals(expected, workflow.metadata)
373373 }
374374
375375 @Test
376376 fun `Create Workflow spec with StartContainers volume claim default values` () {
377377 val sc = getStartContainersDiamond()
378- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
378+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
379379 val dataDir =
380380 V1PersistentVolumeClaim ()
381381 .metadata(V1ObjectMeta ().name(VOLUME_CLAIM ))
@@ -394,7 +394,7 @@ class WorkflowBuildersTests {
394394 every { csmPlatformProperties.argo.workflows.storageClass } returns " cosmotech-api-test-phoenix"
395395 every { csmPlatformProperties.argo.workflows.accessModes } returns listOf (" ReadWriteMany" )
396396 every { csmPlatformProperties.argo.workflows.requests } returns mapOf (" storage" to " 300Gi" )
397- val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc)
397+ val workflowSpec = buildWorkflowSpec(csmPlatformProperties, sc, null )
398398 val dataDir =
399399 V1PersistentVolumeClaim ()
400400 .metadata(V1ObjectMeta ().name(VOLUME_CLAIM ))
@@ -429,7 +429,7 @@ class WorkflowBuildersTests {
429429 @Test
430430 fun `Create Workflow with metadata labels` () {
431431 val sc = getStartContainersWithLabels()
432- val workflow = buildWorkflowSpec(csmPlatformProperties, sc)
432+ val workflow = buildWorkflowSpec(csmPlatformProperties, sc, null )
433433 val labeledTemplate =
434434 workflow.templates?.find { template -> template.name.equals(" fetchDatasetContainer-1" ) }
435435
0 commit comments