From 1f17d254077827c171d888d9e60edfd5b94984d6 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Sat, 2 Jan 2021 22:45:56 +0330 Subject: [PATCH] e2e: add filesystem PVC resize test for radosNamespace Signed-off-by: Seena Fallah --- e2e/rbd.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/e2e/rbd.go b/e2e/rbd.go index 42a96f04e..05572cbfa 100644 --- a/e2e/rbd.go +++ b/e2e/rbd.go @@ -1184,6 +1184,7 @@ var _ = Describe("RBD", func() { if err != nil { e2elog.Failf("failed to validate pvc and application binding with error %v", err) } + // Resize Block PVC and check Device size within the namespace // Block PVC resize is supported in kubernetes 1.16+ if k8sVersionGreaterEquals(f.ClientSet, 1, 16) { @@ -1193,6 +1194,15 @@ var _ = Describe("RBD", func() { } } + // Resize Filesystem PVC and check application directory size + // Resize 0.3.0 is only supported from v1.15+ + if k8sVersionGreaterEquals(f.ClientSet, 1, 15) { + err := resizePVCAndValidateSize(pvcPath, appPath, f) + if err != nil { + e2elog.Failf("failed to resize filesystem PVC %v", err) + } + } + // Create a PVC clone and bind it to an app within the namespace // snapshot beta is only supported from v1.17+ if k8sVersionGreaterEquals(f.ClientSet, 1, 17) {