A number of cases need to be manually tested in longhorn-ui. To test these cases, create the Volume with the specified conditions in each case, and then try to delete it. What is observed should match what is described in the test case:
- A regular
Volume. Only the default deletion prompt should show up asking to confirm deletion. - A
Volumewith aPersistent Volume. The deletion prompt should tell the user that there is aPersistent Volumethat will be deleted along with theVolume. - A
Volumewith aPersistent VolumeandPersistent Volume Claim. The deletion prompt should tell the user that there is aPersistent VolumeandPersistent Volume Claimthat will be deleted along with theVolume. - A
Volumethat isAttached. The deletion prompt should indicate whatNodetheVolumeis attached to and warn the user about errors that may occur as a result of deleting an attachedVolume. - A
Volumethat isAttachedand has aPersistent Volume. The deletion prompt should contain the information from both test cases 2 and 4.
Additionally, here are bulk deletion test cases that need testing:
- 1+ regular
Volumes. Only the default deletion prompt should show up asking to confirm deletion. - 1+
Volumeswith aPersistent Volume. The deletion prompt should list thePersistent Volumesassociated with theVolumesand tell the user that these will also be deleted. - 0+ regular
Volumesand 1+Volumesthat areAttached. The deletion prompt should list onlyVolumesthat areAttachedand tell the user that applications using them may encounter errors once theVolumesare deleted. This test case has not been addressed inlonghorn-uiyet and will likely fail. - 0+ regular
Volumes, 1+Volumeswith aPersistent Volume, and 1+Volumesthat areAttached. The information described in test cases 2 and 3 should be displayed. This test case has not been addressed inlonghorn-uiyet and will likely fail.
Finally, there are some other test cases to check here:
- Create a
Volumeand create aPersistent VolumeandPersistent Volume Claimthrough thelonghorn-ui. Delete thePersistent Volume Claimmanually. Delete theVolume. The deletion prompt should not list thePersistent Volume Claimthat was deleted in the list of resources to be deleted. - Create a
Disaster Recovery Volume. Delete theDisaster Recovery Volume. The deletion prompt should not give a warning about errors that may occur from deleting an attachedVolume. This test case has not been addressed inlonghorn-uiyet and will likely fail. - Create a
Volumefrom aBackup. While theVolumeis still being restored, delete theVolume. The deletion prompt should not give a warning about errors that may occur from deleting an attachedVolume. This test case has not been addressed inlonghorn-uiyet and will likely fail.
Some of these test cases have not been addressed yet and will fail until addressed in a later PR.