Skip to content

Commit 30f1f87

Browse files
authored
EF UTS Production test cases fixes (#3648)
1 parent eeb7ab4 commit 30f1f87

File tree

4 files changed

+23
-18
lines changed

4 files changed

+23
-18
lines changed

tests/e2e/csi_static_provisioning_basic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,8 +1766,8 @@ var _ = ginkgo.Describe("Basic Static Provisioning", func() {
17661766
// 7. Wait for PV , PVC to get bound.
17671767
// 8. Create POD, verify the status.
17681768
// 9. Delete all the above created PV, PVC and resource quota.
1769-
ginkgo.It("[ef-vks] [ef-vks-n1][ef-vks-n2][csi-guest] static volume provisioning on guest "+
1770-
"cluster", ginkgo.Label(p0, block, tkg, vc70), func() {
1769+
ginkgo.It("[ef-vks-f] [ef-vks-n1-f][ef-vks-n2-f][csi-guest] static volume provisioning "+
1770+
"on guest cluster", ginkgo.Label(p0, block, tkg, vc70), func() {
17711771
var err error
17721772
ctx, cancel := context.WithCancel(context.Background())
17731773
defer cancel()

tests/e2e/gc_block_resize_retain_policy.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ var _ = ginkgo.Describe("[csi-guest][ef-vks] [ef-vks-n1][ef-vks-n2] Volume Expan
414414
// 16. delete SC created in step 1 and step 7.
415415
// 17. delete GC2.
416416
// Steps 6 and 17 need to run manually before and after this suite.
417-
ginkgo.It("[ef-vks-f] PV with reclaim policy retain can be resized when used in a fresh GC", ginkgo.Label(p0,
418-
block, tkg, vc70), func() {
417+
ginkgo.It("[ef-vks-f] [ef-vks-n1-f][ef-vks-n2-f] PV with reclaim policy retain can be resized "+
418+
"when used in a fresh GC", ginkgo.Label(p0, block, tkg, vc70), func() {
419419
ctx, cancel := context.WithCancel(context.Background())
420420
defer cancel()
421421
newGcKubconfigPath := os.Getenv("NEW_GUEST_CLUSTER_KUBE_CONFIG")
@@ -837,8 +837,9 @@ var _ = ginkgo.Describe("[csi-guest][ef-vks] [ef-vks-n1][ef-vks-n2] Volume Expan
837837
// 16. delete SC created in step 1 and step 7.
838838
// 17. delete GC1.
839839

840-
ginkgo.It("[ef-vks-f] online volume expansion-PV with reclaim policy retain can be "+
841-
"resized when used in a fresh GC", ginkgo.Label(p0, block, tkg, vc70), func() {
840+
ginkgo.It("[ef-vks-f][ef-vks-n1-f][ef-vks-n2-f] online volume expansion-PV with reclaim "+
841+
"policy retain can be resized when used in a fresh GC", ginkgo.Label(p0,
842+
block, tkg, vc70), func() {
842843
var err error
843844
ctx, cancel := context.WithCancel(context.Background())
844845
defer cancel()
@@ -998,9 +999,9 @@ var _ = ginkgo.Describe("[csi-guest][ef-vks] [ef-vks-n1][ef-vks-n2] Volume Expan
998999
// 11. verify File system size
9991000
// 12. Delete POD, PVC, PV and SC
10001001

1001-
ginkgo.It("Offline resize of PVC in GC1, Delete PVC and PV in GC1. Statically "+
1002-
"prov same PVC and PV in GC1 and deploy a Pod and trigger online volume expansion", ginkgo.Label(p0,
1003-
block, tkg, vc70), func() {
1002+
ginkgo.It("[ef-vks-f][ef-vks-n1-f][ef-vks-n2-f] Offline resize of PVC in GC1, Delete PVC "+
1003+
"and PV in GC1. Statically prov same PVC and PV in GC1 and deploy a Pod and "+
1004+
"trigger online volume expansion", ginkgo.Label(p0, block, tkg, vc70), func() {
10041005
var err error
10051006
ctx, cancel := context.WithCancel(context.Background())
10061007
defer cancel()

tests/e2e/gc_block_volume_expansion.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,8 +1527,8 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
15271527
// 11. delete the pod created in step 10.
15281528
// 12. delete PVC created in step 2.
15291529
// 13. delete SC created in step 1.
1530-
ginkgo.It("[ef-vks][ef-vks-n1][ef-vks-n2] Verify Online volume expansion on dynamic PVC and "+
1531-
"check FS resize", ginkgo.Label(p1, block, tkg, vc70), func() {
1530+
ginkgo.It("[ef-vks-f][ef-vks-n1-f][ef-vks-n2-f] Verify Online volume expansion on "+
1531+
"dynamic PVC and check FS resize", ginkgo.Label(p1, block, tkg, vc70), func() {
15321532
ctx, cancel := context.WithCancel(context.Background())
15331533
defer cancel()
15341534
// Create a Pod to use this PVC, and verify volume has been attached.
@@ -1901,8 +1901,9 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
19011901
// 9. Trigger online volume expansion on gc-pvc and make sure volume
19021902
// expansion is successful.
19031903
// 10. Delete all the above created PV, PVC and resource quota.
1904-
ginkgo.It("[ef-vks-f][ef-vks-n1-f][ef-vks-n2-f] Online volume resize on statically created PVC "+
1905-
"on guest cluster svcPVC=gcPVC", ginkgo.Label(p1, block, tkg, vc70), func() {
1904+
ginkgo.It("[ef-vks-f][ef-vks-n1-f][ef-vks-n2-f] Online volume resize on statically "+
1905+
"created PVC on guest cluster svcPVC=gcPVC", ginkgo.Label(p1, block,
1906+
tkg, vc70), func() {
19061907
var err error
19071908
ctx, cancel := context.WithCancel(context.Background())
19081909
defer cancel()
@@ -1996,8 +1997,9 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
19961997
// 9. Trigger online volume expansion on gc-pvc, Since svc-PVC size is
19971998
// already greater than the gcPVC , Online expansion on gcPVC should fail.
19981999
// 10. Delete all the above created PV, PVC and resource quota.
1999-
ginkgo.It("[ef-vks][ef-vks-n1][ef-vks-n2] Online volume resize on statically created PVC on guest "+
2000-
"cluster when gcPVC<svcPVC", ginkgo.Label(p1, block, tkg, vc70), func() {
2000+
ginkgo.It("[ef-vks-f][ef-vks-n1-f][ef-vks-n2-f] Online volume resize on statically "+
2001+
"created PVC on guest cluster when gcPVC<svcPVC", ginkgo.Label(p1,
2002+
block, tkg, vc70), func() {
20012003
var err error
20022004
ctx, cancel := context.WithCancel(context.Background())
20032005
defer cancel()
@@ -2101,8 +2103,8 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
21012103
// 9. Trigger online volume expansion on gc-pvc, Online expansion on gcPVC
21022104
// should be successful.
21032105
// 10. Delete all the above created PV, PVC and resource quota.
2104-
ginkgo.It("[ef-vks][ef-vks-n1][ef-vks-n2] Online volume resize on statically created PVC on guest "+
2105-
"cluster when svcPVC<gcPVC", ginkgo.Label(p1, block, tkg, vc70), func() {
2106+
ginkgo.It("[ef-vks-f][ef-vks-n1-f][ef-vks-n2-f] Online volume resize on statically created "+
2107+
"PVC on guest cluster when svcPVC<gcPVC", ginkgo.Label(p1, block, tkg, vc70), func() {
21062108
var err error
21072109
ctx, cancel := context.WithCancel(context.Background())
21082110
defer cancel()

tests/e2e/util.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4027,7 +4027,9 @@ func waitForCNSRegisterVolumeToGetCreated(ctx context.Context, restConfig *rest.
40274027
}
40284028
}
40294029

4030-
describeCNSRegisterVolume(ctx, svcNamespace, cnsRegisterVolumeName)
4030+
if supervisorCluster {
4031+
describeCNSRegisterVolume(ctx, svcNamespace, cnsRegisterVolumeName)
4032+
}
40314033

40324034
return fmt.Errorf("cnsRegisterVolume %s creation is failed within %v", cnsRegisterVolumeName, timeout)
40334035
}

0 commit comments

Comments
 (0)