e2e: add backend validation for rados namespaced images

added more backend validation for rados namespaced
images.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit dc38320fad)
This commit is contained in:
Madhu Rajanna 2020-09-22 11:14:21 +05:30 committed by mergify[bot]
parent 8dc3f51350
commit 4935bc3ead

View File

@ -1183,10 +1183,14 @@ var _ = Describe("RBD", func() {
if err != nil {
e2elog.Failf("failed to delete snapshot with error %v", err)
}
// as snapshot is deleted the image count should be one
validateRBDImageCount(f, 1)
err = deletePVCAndValidatePV(f.ClientSet, pvc, deployTimeout)
if err != nil {
e2elog.Failf("failed to delete PVC with error %v", err)
}
validateRBDImageCount(f, 0)
}
updateConfigMap("")