Skip to content

Commit bfeb371

Browse files
committed
Add e2e test writing to the fs in "dir-mode" provsioning case.
1 parent 60d42ed commit bfeb371

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/e2e/e2e.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,11 @@ var _ = ginkgo.Describe("[efs-csi] EFS CSI", func() {
363363
testEncryptInTransit(f, &encryptInTransit)
364364
})
365365

366-
ginkgo.It("should successfully perform dynamic provisioning", func() {
366+
testPerformDynamicProvisioning := func(mode string) {
367367

368368
ginkgo.By("Creating EFS Storage Class, PVC and associated PV")
369369
params := map[string]string{
370-
"provisioningMode": "efs-ap",
370+
"provisioningMode": mode,
371371
"fileSystemId": FileSystemId,
372372
"subPathPattern": "${.PVC.name}",
373373
"directoryPerms": "700",
@@ -416,7 +416,14 @@ var _ = ginkgo.Describe("[efs-csi] EFS CSI", func() {
416416
if output != testData {
417417
ginkgo.Fail("Read data does not match write data.")
418418
}
419-
})
419+
}
420+
421+
for _, mode := range []string{"efs-ap", "efs-dir"} {
422+
testName := fmt.Sprintf("should successfully perform dynamic provisioning in %s mode", mode)
423+
ginkgo.It(testName, func() {
424+
testPerformDynamicProvisioning(mode)
425+
})
426+
}
420427

421428
createProvisionedDirectory := func(f *framework.Framework, basePath string, pvcName string) (*v1.PersistentVolumeClaim, *storagev1.StorageClass) {
422429
immediateBinding := storagev1.VolumeBindingImmediate

0 commit comments

Comments
 (0)