Skip to content

Commit a200475

Browse files
authored
Test fixes for EF UTS production for tkg (#3650)
1 parent a9656e4 commit a200475

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed

tests/e2e/csi_snapshot_basic.go

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4258,11 +4258,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
42584258
7. Verify pvcs all are in Bound state.
42594259
8. Cleanup all the snapshots and the pvc.
42604260
*/
4261-
42624261
ginkgo.It("[ef-vanilla-block][ef-f-wcp-snapshot][block-vanilla-snapshot][tkg-snapshot][supervisor-snapshot]"+
4263-
"[ef-vks-snapshot] Multi-master and snapshot workflow", ginkgo.Label(p1, block, vanilla,
4262+
"[ef-vks-snapshot-f] Multi-master and snapshot workflow", ginkgo.Label(p1, block, vanilla,
42644263
tkg, snapshot, vc80), func() {
4265-
42664264
ctx, cancel := context.WithCancel(context.Background())
42674265
defer cancel()
42684266

@@ -4940,8 +4938,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
49404938
2. Create Snapshot class and take a snapshot of the volume
49414939
3. Cleanup of snapshot, pvc and sc
49424940
*/
4943-
ginkgo.It("[pq-wcp-snpt] [tkg-snapshot][ef-vks-snapshot-f][supervisor-snapshot] Volume provision and "+
4944-
"snapshot creation/restore on VSAN2 Datastore", ginkgo.Label(p0, snapshot, tkg,
4941+
ginkgo.It("[pq-wcp-snpt] [tkg-snapshot][ef-vks-snapshot-f][supervisor-snapshot] Volume provision "+
4942+
"and snapshot creation/restore on VSAN2 Datastore", ginkgo.Label(p0, snapshot, tkg,
49454943
newTest, vc80), func() {
49464944
ctx, cancel := context.WithCancel(context.Background())
49474945
defer cancel()
@@ -5543,7 +5541,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
55435541
7. Validate the pvc is Bound
55445542
8. Cleanup the snapshot and pvc
55455543
*/
5546-
ginkgo.It("[tkg-snapshot][ef-vks-snapshot] Restore volume from a static snapshot "+
5544+
ginkgo.It("[tkg-snapshot][ef-vks-snapshot-f] Restore volume from a static snapshot "+
55475545
"that is still not ready-to-use", ginkgo.Label(p0, snapshot, tkg, vc80), func() {
55485546

55495547
ctx, cancel := context.WithCancel(context.Background())
@@ -5715,7 +5713,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
57155713
9. Run cleanup: Delete snapshots, restored-volumes, pods.
57165714
*/
57175715

5718-
ginkgo.It("[ef-f-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Perform online "+
5716+
ginkgo.It("[ef-f-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot-f] Perform online "+
57195717
"resize on restored volume", ginkgo.Label(p0, snapshot, tkg, stable, vc80), func() {
57205718
ctx, cancel := context.WithCancel(context.Background())
57215719
defer cancel()
@@ -6299,8 +6297,9 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
62996297
Should fail with an appropriate error
63006298
*/
63016299

6302-
ginkgo.It("[tkg-snapshot][ef-vks-snapshot] Volume snapshot creation on a file-share volume on a guest "+
6303-
"cluster", ginkgo.Label(p1, snapshot, tkg, newTest, negative, stable, vc80), func() {
6300+
ginkgo.It("[tkg-snapshot][ef-vks-snapshot-f] Volume snapshot creation on a file-share "+
6301+
"volume on a guest cluster", ginkgo.Label(p1, snapshot, tkg, newTest, negative,
6302+
stable, vc80), func() {
63046303

63056304
ctx, cancel := context.WithCancel(context.Background())
63066305
defer cancel()
@@ -6344,10 +6343,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
63446343
And also write new data to the restored volumes and it should succeed
63456344
Run cleanup: Delete snapshots, restored-volumes, pods.
63466345
*/
6347-
6348-
ginkgo.It("[ef-f-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Create restore volume "+
6346+
ginkgo.It("[ef-f-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot-f] Create restore volume "+
63496347
"snapshot in consistent order", ginkgo.Label(p0, snapshot, tkg, stable, vc90), func() {
6350-
63516348
ctx, cancel := context.WithCancel(context.Background())
63526349
defer cancel()
63536350

@@ -6519,10 +6516,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
65196516
7. Verify the older data. It should be intact and write new data.
65206517
8. Perform cleanup.
65216518
*/
6522-
6523-
ginkgo.It("[ef-f-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Detach volume with "+
6519+
ginkgo.It("[ef-f-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot-f] Detach volume with "+
65246520
"snapshot", ginkgo.Label(p1, snapshot, tkg, newTest, stable, vc90), func() {
6525-
65266521
ctx, cancel := context.WithCancel(context.Background())
65276522
defer cancel()
65286523

@@ -6647,8 +6642,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
66476642
9. Delete all the above created PV, PVC and resource quota.
66486643
*/
66496644

6650-
ginkgo.It("[tkg-snapshot][ef-vks-snapshot-f] Provisioning of static volume on guest cluster using "+
6651-
"FCD with snapshot creation", ginkgo.Label(p0, snapshot, tkg, stable, vc90), func() {
6645+
ginkgo.It("[tkg-snapshot][ef-vks-snapshot-f] Provisioning of static volume on guest "+
6646+
"cluster using FCD with snapshot creation", ginkgo.Label(p0, snapshot, tkg, stable, vc90), func() {
66526647

66536648
var err error
66546649
ctx, cancel := context.WithCancel(context.Background())
@@ -7046,10 +7041,8 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
70467041
9. Create new snapshots on restore volume and verify it succeeds
70477042
10. Run cleanup: Delete snapshots, restored-volumes, pods
70487043
*/
7049-
7050-
ginkgo.It("[ef-f-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot] Max Snapshots per volume on "+
7044+
ginkgo.It("[ef-f-wcp-snapshot][tkg-snapshot][supervisor-snapshot][ef-vks-snapshot-f] Max Snapshots per volume on "+
70517045
"wcp and gc", ginkgo.Label(p1, snapshot, tkg, vc90), func() {
7052-
70537046
ctx, cancel := context.WithCancel(context.Background())
70547047
defer cancel()
70557048

tests/e2e/gc_block_resize_retain_policy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ var _ = ginkgo.Describe("[csi-guest][ef-vks] [ef-vks-n1][ef-vks-n2] Volume Expan
808808

809809
ginkgo.By("File system resize finished successfully in GC")
810810
ginkgo.By("Checking for PVC resize completion on SVC PVC")
811+
time.Sleep(pollTimeoutShort)
811812
gomega.Expect(verifyResizeCompletedInSupervisor(svcPVCName)).To(gomega.BeTrue())
812813

813814
})

tests/e2e/vsphere_volume_expansion.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3133,9 +3133,12 @@ func invokeTestForVolumeExpansion(f *framework.Framework, client clientset.Inter
31333133
verifyPVSizeinSupervisor(svcPVCName, newSize)
31343134
}
31353135

3136-
ginkgo.By("Checking for conditions on pvc")
3137-
pvclaim, err = waitForPVCToReachFileSystemResizePendingCondition(client, namespace, pvclaim.Name, pollTimeout)
3138-
gomega.Expect(err).NotTo(gomega.HaveOccurred())
3136+
isPrivateNetwork := GetBoolEnvVarOrDefault("IS_PRIVATE_NETWORK", false)
3137+
if !isPrivateNetwork {
3138+
ginkgo.By("Checking for conditions on pvc")
3139+
pvclaim, err = waitForPVCToReachFileSystemResizePendingCondition(client, namespace, pvclaim.Name, pollTimeout)
3140+
gomega.Expect(err).NotTo(gomega.HaveOccurred())
3141+
}
31393142

31403143
if guestCluster {
31413144
ginkgo.By("Checking for 'FileSystemResizePending' status condition on SVC PVC")

0 commit comments

Comments
 (0)