@@ -28,7 +28,7 @@ import (
2828 . "github.com/onsi/gomega"
2929 "go.openly.dev/pointy"
3030
31- dwsv1alpha6 "github.com/DataWorkflowServices/dws/api/v1alpha6 "
31+ dwsv1alpha7 "github.com/DataWorkflowServices/dws/api/v1alpha7 "
3232)
3333
3434var (
4141 highTimeout = "5m"
4242
4343 // Which states use the high timeout
44- highTimeoutStates = []dwsv1alpha6 .WorkflowState {
45- dwsv1alpha6 .StateSetup ,
46- dwsv1alpha6 .StateTeardown ,
44+ highTimeoutStates = []dwsv1alpha7 .WorkflowState {
45+ dwsv1alpha7 .StateSetup ,
46+ dwsv1alpha7 .StateTeardown ,
4747 }
4848)
4949
@@ -57,7 +57,7 @@ var tests = []*T{
5757 // MakeTest("Pending", "#DW ...").Pending()
5858 //
5959 // Mark a test case so it will stop after the workflow achieves the desired state of PreRun
60- // MakeTest("Stop After", "#DW ...").StopAfter(dwsv1alpha6 .StatePreRun),
60+ // MakeTest("Stop After", "#DW ...").StopAfter(dwsv1alpha7 .StatePreRun),
6161 //
6262 // Duplicate a test case 20 times.
6363 // DuplicateTest(
@@ -84,7 +84,6 @@ var tests = []*T{
8484 "#DW jobdw type=xfs name=xfs-storage-profile capacity=14TB profile=my-xfs-storage-profile" ).
8585 WithStorageProfileLvCreate ("--zero n --activate y --type raid5 --nosync --extents $PERCENT_VG --stripes $DEVICE_NUM-1 --stripesize=64KiB --name $LV_NAME $VG_NAME" ),
8686
87-
8887 // Persistent
8988 MakeTest ("Persistent Lustre" ,
9089 "#DW create_persistent type=lustre name=persistent-lustre capacity=50GB" ).
@@ -147,17 +146,17 @@ var tests = []*T{
147146 "#DW container name=prerun-timeout-mpi profile=example-mpi-prerun-timeout" ).
148147 WithPermissions (1050 , 1051 ).WithLabels ("mpi" , "timeout" ).
149148 WithContainerProfile ("example-mpi" , & ContainerProfileOptions {PrerunTimeoutSeconds : pointy .Int (1 ), NoStorage : true }).
150- ExpectError (dwsv1alpha6 .StatePreRun ),
149+ ExpectError (dwsv1alpha7 .StatePreRun ),
151150 MakeTest ("PostRun timeout on MPI containers" ,
152151 "#DW container name=postrun-timeout-mpi profile=example-mpi-postrun-timeout" ).
153152 WithPermissions (1050 , 1051 ).WithLabels ("mpi" , "timeout" ).
154153 WithContainerProfile ("example-mpi-webserver" , & ContainerProfileOptions {PostrunTimeoutSeconds : pointy .Int (1 ), NoStorage : true }).
155- ExpectError (dwsv1alpha6 .StatePostRun ),
154+ ExpectError (dwsv1alpha7 .StatePostRun ),
156155 MakeTest ("Non-zero exit on MPI containers" ,
157156 "#DW container name=mpi-container-fail profile=example-mpi-fail-noretry" ).
158157 WithPermissions (1050 , 1051 ).WithLabels ("mpi" , "fail" ).
159158 WithContainerProfile ("example-mpi-fail" , & ContainerProfileOptions {RetryLimit : pointy .Int (0 )}).
160- ExpectError (dwsv1alpha6 .StatePostRun ),
159+ ExpectError (dwsv1alpha7 .StatePostRun ),
161160
162161 // Containers - Non-MPI
163162 MakeTest ("GFS2 with Containers" ,
@@ -179,27 +178,27 @@ var tests = []*T{
179178 "#DW container name=prerun-timeout profile=example-prerun-timeout" ).
180179 WithPermissions (1050 , 1051 ).WithLabels ("non-mpi" , "timeout" ).
181180 WithContainerProfile ("example-forever" , & ContainerProfileOptions {PrerunTimeoutSeconds : pointy .Int (1 ), NoStorage : true }).
182- ExpectError (dwsv1alpha6 .StatePreRun ),
181+ ExpectError (dwsv1alpha7 .StatePreRun ),
183182 MakeTest ("PostRun timeout on non-MPI containers" ,
184183 "#DW container name=postrun-timeout profile=example-postrun-timeout" ).
185184 WithPermissions (1050 , 1051 ).WithLabels ("non-mpi" , "timeout" ).
186185 WithContainerProfile ("example-forever" , & ContainerProfileOptions {PostrunTimeoutSeconds : pointy .Int (1 ), NoStorage : true }).
187- ExpectError (dwsv1alpha6 .StatePostRun ),
186+ ExpectError (dwsv1alpha7 .StatePostRun ),
188187 MakeTest ("Non-zero exit on non-MPI containers" ,
189188 "#DW container name=container-fail profile=example-fail-noretry" ).
190189 WithPermissions (1050 , 1051 ).WithLabels ("non-mpi" , "fail" ).
191190 WithContainerProfile ("example-fail" , & ContainerProfileOptions {RetryLimit : pointy .Int (0 )}).
192- ExpectError (dwsv1alpha6 .StatePostRun ),
191+ ExpectError (dwsv1alpha7 .StatePostRun ),
193192
194193 // Containers - Unsupported Filesystems. These should fail as xfs/raw filesystems are not supported for containers.
195194 MakeTest ("XFS with Containers" ,
196195 "#DW jobdw type=xfs name=xfs-with-containers capacity=100GB" ,
197196 "#DW container name=xfs-with-containers profile=example-success DW_JOB_foo_local_storage=xfs-with-containers" ).
198- ExpectError (dwsv1alpha6 .StateProposal ).WithLabels ("unsupported-fs" ),
197+ ExpectError (dwsv1alpha7 .StateProposal ).WithLabels ("unsupported-fs" ),
199198 MakeTest ("Raw with Containers" ,
200199 "#DW jobdw type=raw name=raw-with-containers capacity=100GB" ,
201200 "#DW container name=raw-with-containers profile=example-success DW_JOB_foo_local_storage=raw-with-containers" ).
202- ExpectError (dwsv1alpha6 .StateProposal ).WithLabels ("unsupported-fs" ),
201+ ExpectError (dwsv1alpha7 .StateProposal ).WithLabels ("unsupported-fs" ),
203202
204203 // Containers - Multiple Storages
205204 MakeTest ("GFS2 and Lustre with Containers" ,
@@ -254,7 +253,7 @@ var _ = Describe("NNF Integration Test", func() {
254253 // TODO: Ginkgo's `--fail-fast` option still seems to execute DeferCleanup() calls
255254 // See if this is by design or if we might need to move this to an AfterEach()
256255 if ! context .SpecReport ().Failed () {
257- t .AdvanceStateAndWaitForReady (ctx , k8sClient , workflow , dwsv1alpha6 .StateTeardown )
256+ t .AdvanceStateAndWaitForReady (ctx , k8sClient , workflow , dwsv1alpha7 .StateTeardown )
258257
259258 Expect (k8sClient .Delete (ctx , workflow )).To (Succeed ())
260259 }
0 commit comments