Skip to content

Commit 05108a3

Browse files
authored
test fix (#3654)
1 parent 5a625bd commit 05108a3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/e2e/snapshot_vmservice_vm.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ var _ bool = ginkgo.Describe("[snapshot-vmsvc] Snapshot VM Service VM", func() {
267267
vm, err = getVmsvcVM(ctx, vmopC, vm.Namespace, vm.Name) // refresh vm info
268268
gomega.Expect(err).NotTo(gomega.HaveOccurred())
269269
for i, vol := range vm.Status.Volumes {
270-
volFolder := formatNVerifyPvcIsAccessible(vol.DiskUuid, i+1, vmIp)
271-
verifyDataIntegrityOnVmDisk(vmIp, volFolder)
270+
if vol.Name == pvc.Name {
271+
volFolder := formatNVerifyPvcIsAccessible(vol.DiskUuid, i+1, vmIp)
272+
verifyDataIntegrityOnVmDisk(vmIp, volFolder)
273+
}
272274
}
273275
}
274276

tests/e2e/vmservice_vm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ var _ bool = ginkgo.Describe("[vmsvc] vm service with csi vol tests", func() {
350350
8 delete pvcs from step2
351351
9 Remove spbm policy attached to test namespace
352352
*/
353-
ginkgo.It("[ef-vmsvc] hot detach and attach pvc to vmservice vms", ginkgo.Label(p0,
353+
ginkgo.It("[ef-f-vmsvc] hot detach and attach pvc to vmservice vms", ginkgo.Label(p0,
354354
vmServiceVm, block, wcp, vc80), func() {
355355
ctx, cancel := context.WithCancel(context.Background())
356356
defer cancel()

0 commit comments

Comments
 (0)