Skip to content

Commit ac88d8c

Browse files
Adding the additional labels to vanilla block and file tests (#3750)
* Adding common lables to all the tests * Resolved the lint errors * Update config_change_test.go
1 parent 9963a9b commit ac88d8c

36 files changed

+388
-297
lines changed

tests/e2e/config_change_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var _ bool = ginkgo.Describe("[csi-supervisor] config-change-test", func() {
6868
7. Revert the password change
6969
8. Delete Storage class
7070
*/
71-
ginkgo.It("[pq-wcp][pq-vanilla-block] verify PVC deletion after VC password change", ginkgo.Label(p1,
72-
block, wcp, vc80), func() {
71+
ginkgo.It("[pq-wcp][pq-vanilla-block][pq-n1-vanilla-block][pq-n2-vanilla-block] verify PVC deletion after VC "+
72+
"password change", ginkgo.Label(p1, block, wcp, vc80), func() {
7373
ginkgo.By("Invoking password change test")
7474
profileID := e2eVSphere.GetSpbmPolicyID(storagePolicyName)
7575
scParameters[scParamStoragePolicyID] = profileID

tests/e2e/config_secret.go

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
150150
7. Cleanup all objects created during the test
151151
*/
152152

153-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block] Update user credentials in vsphere config secret "+
154-
"keeping password same for both test users", ginkgo.Label(p1, vsphereConfigSecret, block, file, vanilla), func() {
153+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
154+
"[pq-n2-vanilla-block] Update user credentials in vsphere config secret keeping password same for both test"+
155+
" users", ginkgo.Label(p1, vsphereConfigSecret, block, file, vanilla), func() {
155156
ctx, cancel := context.WithCancel(context.Background())
156157
defer cancel()
157158

@@ -249,8 +250,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
249250
12. Cleanup all objects created during the test
250251
*/
251252

252-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block]Change vcenter user password and restart "+
253-
"csi controller pod", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
253+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
254+
"[pq-n2-vanilla-block] Change vcenter user password and restart csi controller pod", ginkgo.Label(p0,
255+
vsphereConfigSecret, block, file, vanilla), func() {
254256
ctx, cancel := context.WithCancel(context.Background())
255257
defer cancel()
256258
testUser1NewPassword := "Admin!123"
@@ -406,8 +408,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
406408
7. Cleanup all objects created during the test
407409
*/
408410

409-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block] Update user credentials in vsphere config secret keeping "+
410-
"password different for both test users", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
411+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
412+
"[pq-n2-vanilla-block] Update user credentials in vsphere config secret keeping password different for both"+
413+
" test users", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
411414
ctx, cancel := context.WithCancel(context.Background())
412415
defer cancel()
413416

@@ -503,8 +506,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
503506
9. Cleanup all objects created during the test
504507
*/
505508

506-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block] Change vcenter ip to hostname and viceversa in vsphere config "+
507-
"secret", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
509+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
510+
"[pq-n2-vanilla-block] Change vcenter ip to hostname and viceversa in vsphere config secret", ginkgo.Label(p0,
511+
vsphereConfigSecret, block, file, vanilla), func() {
508512
ctx, cancel := context.WithCancel(context.Background())
509513
defer cancel()
510514

@@ -619,8 +623,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
619623
9. Cleanup all objects created during the test
620624
*/
621625

622-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block] Change vcenter user to wrong dummy user and later switch back to "+
623-
"correct one", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
626+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
627+
"[pq-n2-vanilla-block] Change vcenter user to wrong dummy user and later switch back to correct"+
628+
" one", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
624629
ctx, cancel := context.WithCancel(context.Background())
625630
defer cancel()
626631
dummyTestUser := "[email protected]"
@@ -748,8 +753,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
748753
10. Cleanup all objects created during the test
749754
*/
750755

751-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block] Add a user without adding required roles and privileges "+
752-
"and switch back to the correct one", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
756+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
757+
"[pq-n2-vanilla-block] Add a user without adding required roles and privileges and switch back to the correct"+
758+
" one", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
753759
ctx, cancel := context.WithCancel(context.Background())
754760
defer cancel()
755761

@@ -869,8 +875,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
869875
8. Cleanup all objects created during the test
870876
*/
871877

872-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block] Add necessary roles and privileges to the user post CSI driver "+
873-
"creation", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
878+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
879+
"[pq-n2-vanilla-block] Add necessary roles and privileges to the user post CSI driver"+
880+
" creation", ginkgo.Label(p0, vsphereConfigSecret, block, file, vanilla), func() {
874881
ctx, cancel := context.WithCancel(context.Background())
875882
defer cancel()
876883

@@ -981,10 +988,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
981988
10. Cleanup all objects created during the test
982989
*/
983990

984-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block] Add wrong datacenter and switch back to the "+
985-
"correct datacenter in vsphere config secret file", ginkgo.Label(p1, vsphereConfigSecret,
986-
block, file, vanilla), func() {
987-
991+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
992+
"[pq-n2-vanilla-block] Add wrong datacenter and switch back to the correct datacenter in vsphere config"+
993+
" secret file", ginkgo.Label(p1, vsphereConfigSecret, block, file, vanilla), func() {
988994
ctx, cancel := context.WithCancel(context.Background())
989995
defer cancel()
990996
dummyDataCenter := "Dummy-Data-Center"
@@ -1108,8 +1114,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
11081114
9. Cleanup all objects created during the test
11091115
*/
11101116

1111-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block] VC with Custom Port", ginkgo.Label(p1, vsphereConfigSecret,
1112-
file, block, customPort), func() {
1117+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
1118+
"[pq-n2-vanilla-block] "+
1119+
"VC with Custom Port", ginkgo.Label(p1, vsphereConfigSecret, file, block, customPort), func() {
11131120
ctx, cancel := context.WithCancel(context.Background())
11141121
defer cancel()
11151122
defaultvCenterPort := "443"
@@ -1236,9 +1243,9 @@ var _ = ginkgo.Describe("Config-Secret", func() {
12361243
10. Cleanup all objects created during the test
12371244
*/
12381245

1239-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block] Modify VC Port and validate the workloads", ginkgo.Label(p1,
1240-
vsphereConfigSecret, file, block,
1241-
customPort), func() {
1246+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
1247+
"[pq-n2-vanilla-block] Modify VC Port and validate the workloads", ginkgo.Label(p1,
1248+
vsphereConfigSecret, file, block, customPort), func() {
12421249
ctx, cancel := context.WithCancel(context.Background())
12431250
defer cancel()
12441251
dummyvCenterPort := "4444"

tests/e2e/csi_cns_telemetry.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ var _ = ginkgo.Describe("[csi-block-vanilla] [csi-file-vanilla] [csi-block-vanil
102102
// 7. Expect the old PVC to reflect the latest cluster-distribution value.
103103

104104
// Test for cluster-distribution value presence.
105-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block]Verify dynamic provisioning of pvc has cluster-distribution value "+
105+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
106+
"[pq-n2-vanilla-block] Verify dynamic provisioning of pvc has cluster-distribution value "+
106107
"updated", ginkgo.Label(p0, block, file, vanilla, vc70), func() {
107108
ctx, cancel := context.WithCancel(context.Background())
108109
defer cancel()
@@ -284,7 +285,8 @@ var _ = ginkgo.Describe("[csi-block-vanilla] [csi-file-vanilla] [csi-block-vanil
284285
// 2. Create a PVC.
285286
// 3. Expect PVC to go to Pending state.
286287

287-
ginkgo.It("[pq-vanilla-file][pq-vanilla-block]Verify PVC goes to Pending when cluster distribution name has more"+
288+
ginkgo.It("[pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block]"+
289+
"[pq-n2-vanilla-block] Verify PVC goes to Pending when cluster distribution name has more"+
288290
" than 128 characters", ginkgo.Label(p0, block, file, vanilla, vc70), func() {
289291
ctx, cancel := context.WithCancel(context.Background())
290292
defer cancel()

tests/e2e/csi_cns_telemetry_statefulsets.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ var _ = ginkgo.Describe("[csi-block-vanilla] [csi-file-vanilla] [csi-supervisor]
9696
}
9797
})
9898

99-
ginkgo.It("[ef-vks][ef-vks-n1][ef-vks-n2][pq-vanilla-file][pq-vanilla-block]Statefulset service for "+
99+
ginkgo.It("[ef-vks][ef-vks-n1][ef-vks-n2][pq-vanilla-file][pq-n1-vanilla-file][pq-n2-vanilla-file]"+
100+
"[pq-vanilla-block][pq-n1-vanilla-block][pq-n2-vanilla-block] Statefulset service for "+
100101
"cluster-distribution metadata check", ginkgo.Label(p0, block, file, vanilla, wcp, tkg, vc70), func() {
101102
ctx, cancel := context.WithCancel(context.Background())
102103
var clusterDistributionValue string

tests/e2e/csi_cns_telemetry_vc_reboot.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ var _ bool = ginkgo.Describe("[csi-block-vanilla] [csi-file-vanilla] "+
9595
// 13. Delete pod and Wait for Volume Disk to be detached from the Node.
9696
// 14. Delete PVC, PV and Storage Class.
9797

98-
ginkgo.It("[csi-block-vanilla][csi-file-vanilla][csi-block-vanilla-serialized][pq-vanilla-file][pq-vanilla-block]"+
98+
ginkgo.It("[csi-block-vanilla][csi-file-vanilla][csi-block-vanilla-serialized][pq-vanilla-file]"+
99+
"[pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block][pq-n2-vanilla-block] "+
99100
"verify volume operations while vc reboot", ginkgo.Label(p1, block, file, vanilla, disruptive,
100101
negative, vc70), func() {
101102
ctx, cancel := context.WithCancel(context.Background())
@@ -283,7 +284,8 @@ var _ bool = ginkgo.Describe("[csi-block-vanilla] [csi-file-vanilla] "+
283284
// 12. Wait for Disk to be attached to the node.
284285
// 13. Delete pod and Wait for Volume Disk to be detached from the Node.
285286
// 14. Delete PVC, PV and Storage Class.
286-
ginkgo.It("[csi-block-vanilla][csi-file-vanilla][csi-block-vanilla-serialized][pq-vanilla-file][pq-vanilla-block]"+
287+
ginkgo.It("[csi-block-vanilla][csi-file-vanilla][csi-block-vanilla-serialized][pq-vanilla-file]"+
288+
"[pq-n1-vanilla-file][pq-n2-vanilla-file][pq-vanilla-block][pq-n1-vanilla-block][pq-n2-vanilla-block] "+
287289
"verify volume operations after vc reboots", ginkgo.Label(p1, block, file, vanilla, disruptive,
288290
negative, vc70), func() {
289291
ctx, cancel := context.WithCancel(context.Background())

0 commit comments

Comments
 (0)