You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For batchAttachment workflow, CSI now adds `:detaching`
suffix to volume name when a volume is being detached.
But it only adds it once it finished a detaching request
to CNS, which could take up to minutes. This means there
is a time period that the volume is not in vm.spec.volumes
but still in batchAttachment.status.volumes, we still
want to capture those volumes' status inside
vm.status.volumes.
Expect(len(vm.Status.Volumes)>vmVolStatusIndex).To(BeTrue(), fmt.Sprintf("vm volume status should have len larger than %d", vmVolStatusIndex))
1519
+
Expect(len(vm.Status.Volumes)).To(BeNumerically(">", vmVolStatusIndex), fmt.Sprintf("vm volume status should have len larger than %d", vmVolStatusIndex))
1484
1520
vmVolStatus:=vm.Status.Volumes[vmVolStatusIndex]
1485
-
Expect(len(attachment.Status.VolumeStatus)>attachmentStatusIndex).To(BeTrue(), fmt.Sprintf("attachment volume status should have len larger than %d", attachmentStatusIndex))
1521
+
Expect(len(attachment.Status.VolumeStatus)).To(BeNumerically(">", attachmentStatusIndex), fmt.Sprintf("attachment volume status should have len larger than %d", attachmentStatusIndex))
Expect(len(vm.Status.Volumes)>vmVolStatusIndex).To(BeTrue(), fmt.Sprintf("vm volume status should have len larger than %d", vmVolStatusIndex))
1543
+
Expect(len(vm.Status.Volumes)).To(BeNumerically(">", vmVolStatusIndex), fmt.Sprintf("vm volume status should have len larger than %d", vmVolStatusIndex))
1504
1544
vmVolStatus:=vm.Status.Volumes[vmVolStatusIndex]
1505
-
Expect(len(attachment.Spec.Volumes)>attachmentStatusIndex).To(BeTrue(), fmt.Sprintf("attachment volume spec should have len larger than %d", attachmentStatusIndex))
1545
+
Expect(len(attachment.Spec.Volumes)).To(BeNumerically(">", attachmentStatusIndex), fmt.Sprintf("attachment volume spec should have len larger than %d", attachmentStatusIndex))
0 commit comments