@@ -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