From 330995751a5ccaa32a851b478490778002b17ee6 Mon Sep 17 00:00:00 2001 From: riya-singhal31 Date: Tue, 4 Jul 2023 13:34:25 +0530 Subject: [PATCH] e2e: add test for validation of fuseMountOptions Signed-off-by: riya-singhal31 --- e2e/cephfs.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/e2e/cephfs.go b/e2e/cephfs.go index 8e558170b..0a88b141f 100644 --- a/e2e/cephfs.go +++ b/e2e/cephfs.go @@ -337,6 +337,26 @@ var _ = Describe(cephfsType, func() { } }) + By("validate fuseMountOptions", func() { + params := map[string]string{ + "mounter": "fuse", + "fuseMountOptions": "default_permissions", + } + err := createCephfsStorageClass(f.ClientSet, f, true, params) + if err != nil { + framework.Failf("failed to create CephFS storageclass: %v", err) + } + mountFlags := []string{"default_permissions"} + err = checkMountOptions(pvcPath, appPath, f, mountFlags) + if err != nil { + framework.Failf("failed to validate fuse mount options: %v", err) + } + err = deleteResource(cephFSExamplePath + "storageclass.yaml") + if err != nil { + framework.Failf("failed to delete CephFS storageclass: %v", err) + } + }) + By("verify generic ephemeral volume support", func() { err := createCephfsStorageClass(f.ClientSet, f, true, nil) if err != nil {