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
Volume
with aPersistent Volume
. The deletion prompt should tell the user that there is aPersistent Volume
that will be deleted along with theVolume
. - A
Volume
with aPersistent Volume
andPersistent Volume Claim
. The deletion prompt should tell the user that there is aPersistent Volume
andPersistent Volume Claim
that will be deleted along with theVolume
. - A
Volume
that isAttached
. The deletion prompt should indicate whatNode
theVolume
is attached to and warn the user about errors that may occur as a result of deleting an attachedVolume
. - A
Volume
that isAttached
and 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+
Volumes
with aPersistent Volume
. The deletion prompt should list thePersistent Volumes
associated with theVolumes
and tell the user that these will also be deleted. - 0+ regular
Volumes
and 1+Volumes
that areAttached
. The deletion prompt should list onlyVolumes
that areAttached
and tell the user that applications using them may encounter errors once theVolumes
are deleted. This test case has not been addressed inlonghorn-ui
yet and will likely fail. - 0+ regular
Volumes
, 1+Volumes
with aPersistent Volume
, and 1+Volumes
that areAttached
. The information described in test cases 2 and 3 should be displayed. This test case has not been addressed inlonghorn-ui
yet and will likely fail.
Finally, there are some other test cases to check here:
- Create a
Volume
and create aPersistent Volume
andPersistent Volume Claim
through thelonghorn-ui
. Delete thePersistent Volume Claim
manually. Delete theVolume
. The deletion prompt should not list thePersistent Volume Claim
that 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-ui
yet and will likely fail. - Create a
Volume
from aBackup
. While theVolume
is 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-ui
yet and will likely fail.
Some of these test cases have not been addressed yet and will fail until addressed in a later PR.