Skip to content

Commit 7daecfe

Browse files
authored
vmserviceVM - Check volume name before validating DataIntegrity (#3707)
1 parent 5ee8107 commit 7daecfe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/e2e/vmservice_utils.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,8 +1322,10 @@ func createVMServiceandWaitForVMtoGetIP(ctx context.Context, vmopC ctlrclient.Cl
13221322
vm, err = getVmsvcVM(ctx, vmopC, vm.Namespace, vm.Name) // refresh vm info
13231323
gomega.Expect(err).NotTo(gomega.HaveOccurred())
13241324
for i, vol := range vm.Status.Volumes {
1325-
volFolder := formatNVerifyPvcIsAccessible(vol.DiskUuid, i+1, vmIp)
1326-
verifyDataIntegrityOnVmDisk(vmIp, volFolder)
1325+
if vol.Name == pvclaimsList[j].Name {
1326+
volFolder := formatNVerifyPvcIsAccessible(vol.DiskUuid, i+1, vmIp)
1327+
verifyDataIntegrityOnVmDisk(vmIp, volFolder)
1328+
}
13271329
}
13281330
}
13291331
}

0 commit comments

Comments
 (0)