From dc38320fad9449c7df2bf4fe702547ffeaca1ff2 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 22 Sep 2020 11:14:21 +0530 Subject: [PATCH] e2e: add backend validation for rados namespaced images added more backend validation for rados namespaced images. Signed-off-by: Madhu Rajanna --- e2e/rbd.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/rbd.go b/e2e/rbd.go index 175d8fbf2..1b80a8af2 100644 --- a/e2e/rbd.go +++ b/e2e/rbd.go @@ -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("")