@@ -28,7 +28,7 @@ import (
2828 . "github.com/onsi/gomega"
2929 "go.openly.dev/pointy"
3030
31- dwsv1alpha4 "github.com/DataWorkflowServices/dws/api/v1alpha4 "
31+ dwsv1alpha6 "github.com/DataWorkflowServices/dws/api/v1alpha6 "
3232)
3333
3434var (
4141 highTimeout = "5m"
4242
4343 // Which states use the high timeout
44- highTimeoutStates = []dwsv1alpha4 .WorkflowState {
45- dwsv1alpha4 .StateSetup ,
46- dwsv1alpha4 .StateTeardown ,
44+ highTimeoutStates = []dwsv1alpha6 .WorkflowState {
45+ dwsv1alpha6 .StateSetup ,
46+ dwsv1alpha6 .StateTeardown ,
4747 }
4848)
4949
@@ -143,17 +143,17 @@ var tests = []*T{
143143 "#DW container name=prerun-timeout-mpi profile=example-mpi-prerun-timeout" ).
144144 WithPermissions (1050 , 1051 ).WithLabels ("mpi" , "timeout" ).
145145 WithContainerProfile ("example-mpi" , & ContainerProfileOptions {PrerunTimeoutSeconds : pointy .Int (1 ), NoStorage : true }).
146- ExpectError (dwsv1alpha4 .StatePreRun ),
146+ ExpectError (dwsv1alpha6 .StatePreRun ),
147147 MakeTest ("PostRun timeout on MPI containers" ,
148148 "#DW container name=postrun-timeout-mpi profile=example-mpi-postrun-timeout" ).
149149 WithPermissions (1050 , 1051 ).WithLabels ("mpi" , "timeout" ).
150150 WithContainerProfile ("example-mpi-webserver" , & ContainerProfileOptions {PostrunTimeoutSeconds : pointy .Int (1 ), NoStorage : true }).
151- ExpectError (dwsv1alpha4 .StatePostRun ),
151+ ExpectError (dwsv1alpha6 .StatePostRun ),
152152 MakeTest ("Non-zero exit on MPI containers" ,
153153 "#DW container name=mpi-container-fail profile=example-mpi-fail-noretry" ).
154154 WithPermissions (1050 , 1051 ).WithLabels ("mpi" , "fail" ).
155155 WithContainerProfile ("example-mpi-fail" , & ContainerProfileOptions {RetryLimit : pointy .Int (0 )}).
156- ExpectError (dwsv1alpha4 .StatePostRun ),
156+ ExpectError (dwsv1alpha6 .StatePostRun ),
157157
158158 // Containers - Non-MPI
159159 MakeTest ("GFS2 with Containers" ,
@@ -175,27 +175,27 @@ var tests = []*T{
175175 "#DW container name=prerun-timeout profile=example-prerun-timeout" ).
176176 WithPermissions (1050 , 1051 ).WithLabels ("non-mpi" , "timeout" ).
177177 WithContainerProfile ("example-forever" , & ContainerProfileOptions {PrerunTimeoutSeconds : pointy .Int (1 ), NoStorage : true }).
178- ExpectError (dwsv1alpha4 .StatePreRun ),
178+ ExpectError (dwsv1alpha6 .StatePreRun ),
179179 MakeTest ("PostRun timeout on non-MPI containers" ,
180180 "#DW container name=postrun-timeout profile=example-postrun-timeout" ).
181181 WithPermissions (1050 , 1051 ).WithLabels ("non-mpi" , "timeout" ).
182182 WithContainerProfile ("example-forever" , & ContainerProfileOptions {PostrunTimeoutSeconds : pointy .Int (1 ), NoStorage : true }).
183- ExpectError (dwsv1alpha4 .StatePostRun ),
183+ ExpectError (dwsv1alpha6 .StatePostRun ),
184184 MakeTest ("Non-zero exit on non-MPI containers" ,
185185 "#DW container name=container-fail profile=example-fail-noretry" ).
186186 WithPermissions (1050 , 1051 ).WithLabels ("non-mpi" , "fail" ).
187187 WithContainerProfile ("example-fail" , & ContainerProfileOptions {RetryLimit : pointy .Int (0 )}).
188- ExpectError (dwsv1alpha4 .StatePostRun ),
188+ ExpectError (dwsv1alpha6 .StatePostRun ),
189189
190190 // Containers - Unsupported Filesystems. These should fail as xfs/raw filesystems are not supported for containers.
191191 MakeTest ("XFS with Containers" ,
192192 "#DW jobdw type=xfs name=xfs-with-containers capacity=100GB" ,
193193 "#DW container name=xfs-with-containers profile=example-success DW_JOB_foo_local_storage=xfs-with-containers" ).
194- ExpectError (dwsv1alpha4 .StateProposal ).WithLabels ("unsupported-fs" ),
194+ ExpectError (dwsv1alpha6 .StateProposal ).WithLabels ("unsupported-fs" ),
195195 MakeTest ("Raw with Containers" ,
196196 "#DW jobdw type=raw name=raw-with-containers capacity=100GB" ,
197197 "#DW container name=raw-with-containers profile=example-success DW_JOB_foo_local_storage=raw-with-containers" ).
198- ExpectError (dwsv1alpha4 .StateProposal ).WithLabels ("unsupported-fs" ),
198+ ExpectError (dwsv1alpha6 .StateProposal ).WithLabels ("unsupported-fs" ),
199199
200200 // Containers - Multiple Storages
201201 MakeTest ("GFS2 and Lustre with Containers" ,
@@ -250,7 +250,7 @@ var _ = Describe("NNF Integration Test", func() {
250250 // TODO: Ginkgo's `--fail-fast` option still seems to execute DeferCleanup() calls
251251 // See if this is by design or if we might need to move this to an AfterEach()
252252 if ! context .SpecReport ().Failed () {
253- t .AdvanceStateAndWaitForReady (ctx , k8sClient , workflow , dwsv1alpha4 .StateTeardown )
253+ t .AdvanceStateAndWaitForReady (ctx , k8sClient , workflow , dwsv1alpha6 .StateTeardown )
254254
255255 Expect (k8sClient .Delete (ctx , workflow )).To (Succeed ())
256256 }
0 commit comments