@@ -245,7 +245,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
245
245
*/
246
246
247
247
ginkgo .It ("[cf-wcp] [cf-vanilla-block][block-vanilla-snapshot] [tkg-snapshot][supervisor-snapshot]" +
248
- " Verify snapshot dynamic provisioning workflow" , ginkgo .Label (p0 , block , tkg ,
248
+ "[ef-vks-snapshot] Verify snapshot dynamic provisioning workflow" , ginkgo .Label (p0 , block , tkg ,
249
249
vanilla , wcp , snapshot , stable , vc90 ), func () {
250
250
ctx , cancel := context .WithCancel (context .Background ())
251
251
defer cancel ()
@@ -1330,9 +1330,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
1330
1330
16. Query the snapshot from CNS side - it shouldn't be available
1331
1331
17. Delete SC and VolumeSnapshotClass
1332
1332
*/
1333
- ginkgo .It ("[cf-vks][cf-vanilla-block][block-vanilla-snapshot][tkg-snapshot] Volume snapshot " +
1334
- "creation and restoration workflow with xfs filesystem" , ginkgo . Label ( p0 , block ,
1335
- vanilla , tkg , snapshot , stable , vc80 ), func () {
1333
+ ginkgo .It ("[cf-vks][cf-vanilla-block][block-vanilla-snapshot][tkg-snapshot]" +
1334
+ "[ef-vks-snapshot] Volume snapshot creation and restoration workflow with xfs " +
1335
+ "filesystem" , ginkgo . Label ( p0 , block , vanilla , tkg , snapshot , stable , vc80 ), func () {
1336
1336
1337
1337
ctx , cancel := context .WithCancel (context .Background ())
1338
1338
defer cancel ()
@@ -1528,9 +1528,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
1528
1528
while the source pvc was created usig thin provisioned psp-operatorlicy
1529
1529
6. cleanup spbm policies, sc's, pvc's
1530
1530
*/
1531
- ginkgo .It ("[cf-wcp] [cf-vanilla-block][block-vanilla-snapshot][tkg-snapshot] [supervisor-snapshot]" +
1532
- " Volume restore using snapshot on a different storageclass" , ginkgo .Label (p0 , block , vanilla ,
1533
- wcp , snapshot , tkg , stable , vc90 ), func () {
1531
+ ginkgo .It ("[cf-wcp] [cf-vanilla-block][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot]" +
1532
+ "[ef-vks-snapshot] Volume restore using snapshot on a different storageclass" , ginkgo .Label (p0 , block ,
1533
+ vanilla , wcp , snapshot , tkg , stable , vc90 ), func () {
1534
1534
1535
1535
ctx , cancel := context .WithCancel (context .Background ())
1536
1536
defer cancel ()
@@ -1667,9 +1667,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
1667
1667
8. Ensure the pvc with source as snapshot creates successfully and is bound
1668
1668
9. Cleanup the snapshot, pvcs and ns
1669
1669
*/
1670
- ginkgo .It ("[block-vanilla-snapshot][cf-vanilla-block][tkg-snapshot] Delete the namespace hosting the pvcs and " +
1671
- "volume-snapshots and recover the data using snapshot-content" , ginkgo . Label ( p0 , block ,
1672
- vanilla , snapshot , tkg , stable , vc80 ), func () {
1670
+ ginkgo .It ("[block-vanilla-snapshot][cf-vanilla-block][tkg-snapshot][ef-vks-snapshot] Delete the " +
1671
+ "namespace hosting the pvcs and volume-snapshots and recover the data using " +
1672
+ "snapshot-content" , ginkgo . Label ( p0 , block , vanilla , snapshot , tkg , stable , vc80 ), func () {
1673
1673
1674
1674
ctx , cancel := context .WithCancel (context .Background ())
1675
1675
defer cancel ()
@@ -1958,8 +1958,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
1958
1958
designed to return success even though it cannot find a snapshot in the backend)
1959
1959
*/
1960
1960
1961
- ginkgo .It ("[cf-wcp] [block-vanilla-snapshot] [tkg-snapshot][supervisor-snapshot] Delete a non-existent " +
1962
- "snapshot" , ginkgo .Label (p0 , block , vanilla , wcp , snapshot , tkg , negative , vc90 ), func () {
1961
+ ginkgo .It ("[cf-wcp] [block-vanilla-snapshot] [tkg-snapshot][supervisor-snapshot]" +
1962
+ "[ef-vks-cnapshot] Delete a non-existent snapshot" , ginkgo .Label (p0 , block , vanilla ,
1963
+ wcp , snapshot , tkg , negative , vc90 ), func () {
1963
1964
1964
1965
ctx , cancel := context .WithCancel (context .Background ())
1965
1966
defer cancel ()
@@ -2041,7 +2042,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
2041
2042
*/
2042
2043
2043
2044
ginkgo .It ("[cf-wcp][cf-vanilla-block][block-vanilla-snapshot] [tkg-snapshot][supervisor-snapshot]" +
2044
- " Create snapshots using default VolumeSnapshotClass" , ginkgo .Label (p0 , block ,
2045
+ "[ef-vks-snapshot] Create snapshots using default VolumeSnapshotClass" , ginkgo .Label (p0 , block ,
2045
2046
vanilla , snapshot , wcp , tkg , vc90 ), func () {
2046
2047
2047
2048
ctx , cancel := context .WithCancel (context .Background ())
@@ -2275,7 +2276,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
2275
2276
10. Verify if the new pod attaches to the PV created in step-8
2276
2277
11. Cleanup the sts and the snapshot + pv that was left behind in step-7
2277
2278
*/
2278
- ginkgo .It ("[ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot] Snapshot workflow for " +
2279
+ ginkgo .It ("[ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot]" +
2280
+ "[supervisor-snapshot] [ef-vks-snapshot] Snapshot workflow for " +
2279
2281
"statefulsets" , ginkgo .Label (p0 , block , vanilla , snapshot , wcp , tkg , vc80 ), func () {
2280
2282
ctx , cancel := context .WithCancel (context .Background ())
2281
2283
defer cancel ()
@@ -2626,7 +2628,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
2626
2628
4. create a pre-provisioned snapshot (which uses VolumeSnapshotContent as source) using the VSC from step(3)
2627
2629
5. Ensure this provisioning fails with appropriate error: SnapshotContentMismatch error
2628
2630
*/
2629
- ginkgo .It ("[block-vanilla-snapshot] [tkg-snapshot] Create a pre-provisioned snapshot using " +
2631
+ ginkgo .It ("[block-vanilla-snapshot] [tkg-snapshot][ef-vks-snapshot] Create a pre-provisioned snapshot using " +
2630
2632
"VolumeSnapshotContent as source" , ginkgo .Label (p1 , block , vanilla , snapshot , tkg , stable ,
2631
2633
negative , vc80 ), func () {
2632
2634
@@ -3032,7 +3034,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
3032
3034
*/
3033
3035
3034
3036
ginkgo .It ("[ef-wcp-snapshot][cf-vanilla-block][block-vanilla-snapshot] [tkg-snapshot]" +
3035
- "[supervisor-snapshot] Snapshot workflow for deployments" , ginkgo .Label (p0 , block ,
3037
+ "[supervisor-snapshot] [ef-vks-snapshot] Snapshot workflow for deployments" , ginkgo .Label (p0 , block ,
3036
3038
vanilla , tkg , snapshot , wcp , stable , vc80 ), func () {
3037
3039
3038
3040
ctx , cancel := context .WithCancel (context .Background ())
@@ -3179,7 +3181,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
3179
3181
7. Cleanup the pvc
3180
3182
*/
3181
3183
ginkgo .It ("[ef-wcp-snapshot][cf-vanilla-block][block-vanilla-snapshot] [tkg-snapshot]" +
3182
- "[supervisor-snapshot] Volume offline resize of a volume having snapshots" , ginkgo .Label (p0 , block ,
3184
+ "[supervisor-snapshot] Verify offline resize of a volume having snapshots" , ginkgo .Label (p0 , block ,
3183
3185
vanilla , tkg , snapshot , stable , wcp , negative , vc90 ), func () {
3184
3186
3185
3187
ctx , cancel := context .WithCancel (context .Background ())
@@ -4251,8 +4253,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
4251
4253
8. Cleanup all the snapshots and the pvc.
4252
4254
*/
4253
4255
4254
- ginkgo .It ("[ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot] Multi-master and " +
4255
- "snapshot workflow" , ginkgo .Label (p1 , block , vanilla , tkg , snapshot , vc80 ), func () {
4256
+ ginkgo .It ("[ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot]" +
4257
+ "[ef-vks-snapshot] Multi-master and snapshot workflow" , ginkgo .Label (p1 , block , vanilla ,
4258
+ tkg , snapshot , vc80 ), func () {
4256
4259
4257
4260
ctx , cancel := context .WithCancel (context .Background ())
4258
4261
defer cancel ()
@@ -4903,6 +4906,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
4903
4906
2. Create Snapshot class and take a snapshot of the volume
4904
4907
3. Cleanup of snapshot, pvc and sc
4905
4908
*/
4909
+
4906
4910
ginkgo .It ("[pq-wcp-snpt][block-vanilla-snapshot][tkg-snapshot] [supervisor-snapshot] Volume provision and " +
4907
4911
"snapshot creation/restore on VMFS Datastore" , ginkgo .Label (p0 , block , vanilla , snapshot ,
4908
4912
tkg , vc80 ), func () {
@@ -4917,9 +4921,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
4917
4921
2. Create Snapshot class and take a snapshot of the volume
4918
4922
3. Cleanup of snapshot, pvc and sc
4919
4923
*/
4920
- ginkgo .It ("[ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot] [supervisor-snapshot] Volume provision and " +
4921
- "snapshot creation/restore on NFS Datastore" , ginkgo .Label (p0 , block , vanilla , snapshot ,
4922
- tkg , vc80 ), func () {
4924
+ ginkgo .It ("[ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot] [supervisor-snapshot]" +
4925
+ "[ef-vks- snapshot] Volume provision and snapshot creation/restore on NFS Datastore" , ginkgo .Label (p0 ,
4926
+ block , vanilla , snapshot , tkg , vc80 ), func () {
4923
4927
ctx , cancel := context .WithCancel (context .Background ())
4924
4928
defer cancel ()
4925
4929
invokeSnapshotOperationsOnSharedDatastore (client , ctx , namespace , scParameters , snapc , "NFS" , pandoraSyncWaitTime )
@@ -4960,8 +4964,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
4960
4964
4. Volume restore
4961
4965
5. snapshot create/delete workflow
4962
4966
*/
4963
- ginkgo .It ("[ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot] Scale-up creation " +
4964
- "of snapshots across multiple volumes" , ginkgo .Label (p1 , block , vanilla , snapshot , tkg , stable , vc80 ), func () {
4967
+ ginkgo .It ("[ef-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Scale-up " +
4968
+ "creation of snapshots across multiple volumes" , ginkgo .Label (p1 , block , vanilla , snapshot ,
4969
+ tkg , stable , vc80 ), func () {
4965
4970
4966
4971
ctx , cancel := context .WithCancel (context .Background ())
4967
4972
defer cancel ()
@@ -5103,8 +5108,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
5103
5108
5. Perform cleanup
5104
5109
*/
5105
5110
5106
- ginkgo .It ("[tkg-snapshot] Verify pre-provisioned static snapshot workflow" , ginkgo . Label ( p0 , snapshot ,
5107
- tkg , vc80 ), func () {
5111
+ ginkgo .It ("[tkg-snapshot][ef-vks-snapshot] Verify pre-provisioned static snapshot " +
5112
+ "workflow" , ginkgo . Label ( p0 , snapshot , tkg , vc80 ), func () {
5108
5113
ctx , cancel := context .WithCancel (context .Background ())
5109
5114
defer cancel ()
5110
5115
@@ -5216,7 +5221,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
5216
5221
10. Run cleanup: Delete snapshots, restored-volumes, pods
5217
5222
*/
5218
5223
5219
- ginkgo .It ("[tkg-snapshot] Volume restore using dynamic and pre-provisioned snapshot on " +
5224
+ ginkgo .It ("[tkg-snapshot][ef-vks-snapshot] Volume restore using dynamic and pre-provisioned snapshot on " +
5220
5225
"guest cluster" , ginkgo .Label (p0 , snapshot , tkg , flaky , vc80 ), func () {
5221
5226
5222
5227
ctx , cancel := context .WithCancel (context .Background ())
@@ -5402,8 +5407,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
5402
5407
(note the snapshotHandle its pointing to has been deleted)
5403
5408
8. Volume Create should fail with an appropriate error on k8s side
5404
5409
*/
5405
- ginkgo .It ("[tkg-snapshot] Restore volume using non-existing static snapshot" , ginkgo . Label ( p0 , snapshot , tkg ,
5406
- vc80 ), func () {
5410
+ ginkgo .It ("[tkg-snapshot][ef-vks-snapshot] Restore volume using non-existing static " +
5411
+ "snapshot" , ginkgo . Label ( p0 , snapshot , tkg , vc80 ), func () {
5407
5412
5408
5413
ctx , cancel := context .WithCancel (context .Background ())
5409
5414
defer cancel ()
@@ -5531,8 +5536,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
5531
5536
7. Validate the pvc is Bound
5532
5537
8. Cleanup the snapshot and pvc
5533
5538
*/
5534
- ginkgo .It ("[tkg-snapshot] Restore volume from a static snapshot that is still not " +
5535
- "ready-to-use" , ginkgo .Label (p0 , snapshot , tkg , vc80 ), func () {
5539
+ ginkgo .It ("[tkg-snapshot][ef-vks-snapshot] Restore volume from a static snapshot " +
5540
+ "that is still not ready-to-use" , ginkgo .Label (p0 , snapshot , tkg , vc80 ), func () {
5536
5541
5537
5542
ctx , cancel := context .WithCancel (context .Background ())
5538
5543
defer cancel ()
@@ -5703,8 +5708,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
5703
5708
9. Run cleanup: Delete snapshots, restored-volumes, pods.
5704
5709
*/
5705
5710
5706
- ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot] Perform online resize on restored " +
5707
- "volume" , ginkgo .Label (p0 , snapshot , tkg , stable , vc80 ), func () {
5711
+ ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Perform online " +
5712
+ "resize on restored volume" , ginkgo .Label (p0 , snapshot , tkg , stable , vc80 ), func () {
5708
5713
ctx , cancel := context .WithCancel (context .Background ())
5709
5714
defer cancel ()
5710
5715
@@ -5905,8 +5910,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
5905
5910
7. Run cleanup: Delete snapshots, restored-volumes, pods.
5906
5911
*/
5907
5912
5908
- ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot] Offline relocation of FCD " +
5909
- "with snapshots" , ginkgo .Label (p0 , snapshot , tkg , stable , vc80 ), func () {
5913
+ ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Offline " +
5914
+ "relocation of FCD with snapshots" , ginkgo .Label (p0 , snapshot , tkg , stable , vc80 ), func () {
5910
5915
5911
5916
ctx , cancel := context .WithCancel (context .Background ())
5912
5917
defer cancel ()
@@ -6180,7 +6185,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
6180
6185
5. Restore PVC creation should fail and be stuck in Pending state with appropriate error message.
6181
6186
6. Perform Cleanup.
6182
6187
*/
6183
- ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot] Volume mode " +
6188
+ ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Volume mode " +
6184
6189
"conversion" , ginkgo .Label (p2 , snapshot , tkg , newTest , stable , negative , vc90 ), func () {
6185
6190
6186
6191
ctx , cancel := context .WithCancel (context .Background ())
@@ -6288,7 +6293,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
6288
6293
Should fail with an appropriate error
6289
6294
*/
6290
6295
6291
- ginkgo .It ("[tkg-snapshot] Volume snapshot creation on a file-share volume on a guest " +
6296
+ ginkgo .It ("[tkg-snapshot][ef-vks-snapshot] Volume snapshot creation on a file-share volume on a guest " +
6292
6297
"cluster" , ginkgo .Label (p1 , snapshot , tkg , newTest , negative , stable , vc80 ), func () {
6293
6298
6294
6299
ctx , cancel := context .WithCancel (context .Background ())
@@ -6334,7 +6339,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
6334
6339
Run cleanup: Delete snapshots, restored-volumes, pods.
6335
6340
*/
6336
6341
6337
- ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot] Create restore volume snapshot " +
6342
+ ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Create restore volume snapshot " +
6338
6343
"in consistent order" , ginkgo .Label (p0 , snapshot , tkg , stable , vc90 ), func () {
6339
6344
6340
6345
ctx , cancel := context .WithCancel (context .Background ())
@@ -6509,7 +6514,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
6509
6514
8. Perform cleanup.
6510
6515
*/
6511
6516
6512
- ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot] Detach volume with " +
6517
+ ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Detach volume with " +
6513
6518
"snapshot" , ginkgo .Label (p1 , snapshot , tkg , newTest , stable , vc90 ), func () {
6514
6519
6515
6520
ctx , cancel := context .WithCancel (context .Background ())
@@ -6636,7 +6641,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
6636
6641
9. Delete all the above created PV, PVC and resource quota.
6637
6642
*/
6638
6643
6639
- ginkgo .It ("[tkg-snapshot] Provisioning of static volume on guest cluster using FCD with snapshot " +
6644
+ ginkgo .It ("[tkg-snapshot][ef-vks-snapshot] Provisioning of static volume on guest cluster using FCD with snapshot " +
6640
6645
"creation" , ginkgo .Label (p0 , snapshot , tkg , stable , vc90 ), func () {
6641
6646
6642
6647
var err error
@@ -7036,74 +7041,74 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
7036
7041
10. Run cleanup: Delete snapshots, restored-volumes, pods
7037
7042
*/
7038
7043
7039
- ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot] Max Snapshots per volume on wcp and gc" ,
7040
- ginkgo .Label (p1 , snapshot , tkg , vc90 ), func () {
7044
+ ginkgo .It ("[ef-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Max Snapshots per volume on wcp " +
7045
+ "and gc" , ginkgo .Label (p1 , snapshot , tkg , vc90 ), func () {
7041
7046
7042
- ctx , cancel := context .WithCancel (context .Background ())
7043
- defer cancel ()
7047
+ ctx , cancel := context .WithCancel (context .Background ())
7048
+ defer cancel ()
7044
7049
7045
- var volumeSnapshots []* snapV1.VolumeSnapshot
7046
- var snapshotIds []string
7047
- snapDeleted := false
7048
- noOfSnapshotToCreate := 33
7050
+ var volumeSnapshots []* snapV1.VolumeSnapshot
7051
+ var snapshotIds []string
7052
+ snapDeleted := false
7053
+ noOfSnapshotToCreate := 33
7049
7054
7050
- ginkgo .By ("Get storage class" )
7051
- storageclass , err := createStorageClass (client , scParameters , nil , "" , "" , false , scName )
7052
- if ! apierrors .IsNotFound (err ) {
7053
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7054
- }
7055
+ ginkgo .By ("Get storage class" )
7056
+ storageclass , err := createStorageClass (client , scParameters , nil , "" , "" , false , scName )
7057
+ if ! apierrors .IsNotFound (err ) {
7058
+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7059
+ }
7055
7060
7056
- ginkgo .By ("Create PVC" )
7057
- pvclaim , persistentVolumes , err := createPVCAndQueryVolumeInCNS (ctx , client , namespace , labelsMap , v1 .ReadWriteOnce ,
7058
- diskSize , storageclass , true )
7061
+ ginkgo .By ("Create PVC" )
7062
+ pvclaim , persistentVolumes , err := createPVCAndQueryVolumeInCNS (ctx , client , namespace , labelsMap , v1 .ReadWriteOnce ,
7063
+ diskSize , storageclass , true )
7064
+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7065
+ volHandle = persistentVolumes [0 ].Spec .CSI .VolumeHandle
7066
+ if guestCluster {
7067
+ volHandle = getVolumeIDFromSupervisorCluster (volHandle )
7068
+ }
7069
+ gomega .Expect (volHandle ).NotTo (gomega .BeEmpty ())
7070
+ defer func () {
7071
+ err := fpv .DeletePersistentVolumeClaim (ctx , client , pvclaim .Name , namespace )
7059
7072
gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7060
- volHandle = persistentVolumes [0 ].Spec .CSI .VolumeHandle
7061
- if guestCluster {
7062
- volHandle = getVolumeIDFromSupervisorCluster (volHandle )
7063
- }
7064
- gomega .Expect (volHandle ).NotTo (gomega .BeEmpty ())
7065
- defer func () {
7066
- err := fpv .DeletePersistentVolumeClaim (ctx , client , pvclaim .Name , namespace )
7067
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7068
- err = e2eVSphere .waitForCNSVolumeToBeDeleted (volHandle )
7069
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7070
- }()
7073
+ err = e2eVSphere .waitForCNSVolumeToBeDeleted (volHandle )
7074
+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7075
+ }()
7071
7076
7072
- ginkgo .By ("Get volume snapshot class" )
7073
- volumeSnapshotClass , err := createVolumeSnapshotClass (ctx , snapc , deletionPolicy )
7074
- if ! apierrors .IsNotFound (err ) {
7075
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7076
- }
7077
+ ginkgo .By ("Get volume snapshot class" )
7078
+ volumeSnapshotClass , err := createVolumeSnapshotClass (ctx , snapc , deletionPolicy )
7079
+ if ! apierrors .IsNotFound (err ) {
7080
+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7081
+ }
7077
7082
7078
- for i := 0 ; i < noOfSnapshotToCreate ; i ++ {
7079
- ginkgo .By (fmt .Sprintf ("Creating snapshot no: %d for pvc %s" , i + 1 , pvclaim .Name ))
7080
- volumeSnapshot , _ , _ , _ , snapshotId , _ , err := createDynamicVolumeSnapshot (ctx , namespace , snapc ,
7081
- volumeSnapshotClass , pvclaim , volHandle , diskSize , true )
7082
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7083
+ for i := 0 ; i < noOfSnapshotToCreate ; i ++ {
7084
+ ginkgo .By (fmt .Sprintf ("Creating snapshot no: %d for pvc %s" , i + 1 , pvclaim .Name ))
7085
+ volumeSnapshot , _ , _ , _ , snapshotId , _ , err := createDynamicVolumeSnapshot (ctx , namespace , snapc ,
7086
+ volumeSnapshotClass , pvclaim , volHandle , diskSize , true )
7087
+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7083
7088
7084
- volumeSnapshots = append (volumeSnapshots , volumeSnapshot )
7085
- snapshotIds = append (snapshotIds , snapshotId )
7086
- }
7089
+ volumeSnapshots = append (volumeSnapshots , volumeSnapshot )
7090
+ snapshotIds = append (snapshotIds , snapshotId )
7091
+ }
7087
7092
7088
- defer func () {
7089
- if ! snapDeleted {
7090
- for i := 0 ; i < noOfSnapshotToCreate ; i ++ {
7091
- ginkgo .By ("Delete dynamic volume snapshot" )
7092
- _ , _ , err = deleteVolumeSnapshot (ctx , snapc , namespace ,
7093
- volumeSnapshots [i ], pandoraSyncWaitTime , volHandle , snapshotIds [i ], true )
7094
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7095
- }
7093
+ defer func () {
7094
+ if ! snapDeleted {
7095
+ for i := 0 ; i < noOfSnapshotToCreate ; i ++ {
7096
+ ginkgo .By ("Delete dynamic volume snapshot" )
7097
+ _ , _ , err = deleteVolumeSnapshot (ctx , snapc , namespace ,
7098
+ volumeSnapshots [i ], pandoraSyncWaitTime , volHandle , snapshotIds [i ], true )
7099
+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7096
7100
}
7097
- }()
7098
-
7099
- for i := 0 ; i < noOfSnapshotToCreate ; i ++ {
7100
- ginkgo .By ("Delete dynamic volume snapshot" )
7101
- _ , _ , err = deleteVolumeSnapshot (ctx , snapc , namespace ,
7102
- volumeSnapshots [i ], pandoraSyncWaitTime , volHandle , snapshotIds [i ], true )
7103
- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7104
7101
}
7105
- snapDeleted = true
7106
- })
7102
+ }()
7103
+
7104
+ for i := 0 ; i < noOfSnapshotToCreate ; i ++ {
7105
+ ginkgo .By ("Delete dynamic volume snapshot" )
7106
+ _ , _ , err = deleteVolumeSnapshot (ctx , snapc , namespace ,
7107
+ volumeSnapshots [i ], pandoraSyncWaitTime , volHandle , snapshotIds [i ], true )
7108
+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
7109
+ }
7110
+ snapDeleted = true
7111
+ })
7107
7112
7108
7113
/*
7109
7114
0 commit comments