From 0600f7ee22a29977863f602cc5d6913da41a3b7c Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Fri, 16 Mar 2018 15:14:42 -0400 Subject: [PATCH] Fix e2e tests for emptydir --- test/e2e/common/empty_dir.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/common/empty_dir.go b/test/e2e/common/empty_dir.go index bc6ad4b6cc2..613a88ef42e 100644 --- a/test/e2e/common/empty_dir.go +++ b/test/e2e/common/empty_dir.go @@ -41,7 +41,7 @@ var ( var _ = Describe("[sig-storage] EmptyDir volumes", func() { f := framework.NewDefaultFramework("emptydir") - Context("when FSGroup is specified [Feature:FSGroup]", func() { + Context("when FSGroup is specified", func() { It("new files should be created with FSGroup ownership when container is root", func() { doTestSetgidFSGroup(f, testImageRootUid, v1.StorageMediumMemory) }) @@ -252,6 +252,7 @@ func doTestSubPathFSGroup(f *framework.Framework, image string, medium v1.Storag fmt.Sprintf("--fs_type=%v", volumePath), fmt.Sprintf("--file_perm=%v", volumePath), fmt.Sprintf("--file_owner=%v", volumePath), + fmt.Sprintf("--file_mode=%v", volumePath), } pod.Spec.Containers[0].VolumeMounts[0].SubPath = subPath @@ -264,6 +265,7 @@ func doTestSubPathFSGroup(f *framework.Framework, image string, medium v1.Storag "perms of file \"/test-volume\": -rwxrwxrwx", "owner UID of \"/test-volume\": 0", "owner GID of \"/test-volume\": 123", + "mode of file \"/test-volume\": dgtrwxrwxrwx", } if medium == v1.StorageMediumMemory { out = append(out, "mount type of \"/test-volume\": tmpfs")