Add test for FS dir permission.
@@ -770,7 +770,12 @@ spec:
Expect(err).ShouldNot(HaveOccurred(), "stdout=%s, stderr=%s", stdout, stderr)
Expect(strings.TrimSpace(string(stdout))).ShouldNot(BeEmpty())
- By("Confirming two LVMs were created")
+ By("confirming the mounted dir permission is 2777")
+ stdout, stderr, err = kubectl("exec", "-n", ns, "ubuntu", "--", "stat", "/test1", "-c", "'%a'")
+ Expect(err).ShouldNot(HaveOccurred(), "stdout=%s, stderr=%s", stdout, stderr)
+ Expect(strings.TrimSpace(string(stdout))).To(Equal("2777"))
+
+ By("confirming two LVMs were created")
postCreateLvmCount, err := countLVMs()
Expect(err).ShouldNot(HaveOccurred())
Expect(postCreateLvmCount).To(Equal(baseLvmCount + 2))
