mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: validate images in trash for volumegroupsnapshot test
Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
@ -176,6 +176,14 @@ func (rvgs *rbdVolumeGroupSnapshot) ValidateResourcesForCreate(vgs *groupsnapapi
|
||||
|
||||
func (rvgs *rbdVolumeGroupSnapshot) ValidateResourcesForDelete() error {
|
||||
validateOmapCount(rvgs.framework, 0, rbdType, defaultRBDPool, volumesType)
|
||||
validateOmapCount(rvgs.framework, 0, rbdType, defaultRBDPool, snapsType)
|
||||
validateOmapCount(rvgs.framework, 0, rbdType, defaultRBDPool, groupSnapsType)
|
||||
validateRBDImageCount(rvgs.framework, 0, defaultRBDPool)
|
||||
|
||||
err := waitToRemoveImagesFromTrash(rvgs.framework, defaultRBDPool, deployTimeout)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user