@@ -363,11 +363,11 @@ var _ = ginkgo.Describe("[efs-csi] EFS CSI", func() {
363
363
testEncryptInTransit (f , & encryptInTransit )
364
364
})
365
365
366
- ginkgo . It ( "should successfully perform dynamic provisioning" , func () {
366
+ testPerformDynamicProvisioning := func (mode string ) {
367
367
368
368
ginkgo .By ("Creating EFS Storage Class, PVC and associated PV" )
369
369
params := map [string ]string {
370
- "provisioningMode" : "efs-ap" ,
370
+ "provisioningMode" : mode ,
371
371
"fileSystemId" : FileSystemId ,
372
372
"subPathPattern" : "${.PVC.name}" ,
373
373
"directoryPerms" : "700" ,
@@ -416,7 +416,14 @@ var _ = ginkgo.Describe("[efs-csi] EFS CSI", func() {
416
416
if output != testData {
417
417
ginkgo .Fail ("Read data does not match write data." )
418
418
}
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
+ }
420
427
421
428
createProvisionedDirectory := func (f * framework.Framework , basePath string , pvcName string ) (* v1.PersistentVolumeClaim , * storagev1.StorageClass ) {
422
429
immediateBinding := storagev1 .VolumeBindingImmediate
0 commit comments