@@ -1006,4 +1006,79 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
10061006 }
10071007 test .Run (ctx , cs , ns )
10081008 })
1009+
1010+ ginkgo .It ("should clone a volume from an existing NFSv3 volume to another storage class [nfs]" , func (ctx ginkgo.SpecContext ) {
1011+ pod := testsuites.PodDetails {
1012+ Cmd : "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ,
1013+ Volumes : []testsuites.VolumeDetails {
1014+ {
1015+ ClaimSize : "10Gi" ,
1016+ MountOptions : []string {
1017+ "nconnect=8" ,
1018+ },
1019+ VolumeMount : testsuites.VolumeMountDetails {
1020+ NameGenerate : "test-volume-" ,
1021+ MountPathGenerate : "/mnt/test-" ,
1022+ },
1023+ },
1024+ },
1025+ }
1026+ podWithClonedVolume := testsuites.PodDetails {
1027+ Cmd : "grep 'hello world' /mnt/test-1/data" ,
1028+ }
1029+ test := testsuites.DynamicallyProvisionedVolumeCloningTest {
1030+ CSIDriver : testDriver ,
1031+ Pod : pod ,
1032+ PodWithClonedVolume : podWithClonedVolume ,
1033+ StorageClassParameters : map [string ]string {
1034+ "skuName" : "Premium_LRS" ,
1035+ "protocol" : "nfs" ,
1036+ "mountPermissions" : "0755" ,
1037+ "allowsharedkeyaccess" : "true" ,
1038+ },
1039+ ClonedStorageClassParameters : map [string ]string {
1040+ "skuName" : "Standard_LRS" ,
1041+ "protocol" : "nfs" ,
1042+ "mountPermissions" : "0755" ,
1043+ "allowsharedkeyaccess" : "true" ,
1044+ },
1045+ }
1046+ test .Run (ctx , cs , ns )
1047+ })
1048+
1049+ ginkgo .It ("should clone a volume from an existing blobfuse2 volume to another storage class [fuse2]" , func (ctx ginkgo.SpecContext ) {
1050+ pod := testsuites.PodDetails {
1051+ Cmd : "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ,
1052+ Volumes : []testsuites.VolumeDetails {
1053+ {
1054+ ClaimSize : "10Gi" ,
1055+ MountOptions : []string {
1056+ "-o allow_other" ,
1057+ "--virtual-directory=true" , // blobfuse2 mount options
1058+ },
1059+ VolumeMount : testsuites.VolumeMountDetails {
1060+ NameGenerate : "test-volume-" ,
1061+ MountPathGenerate : "/mnt/test-" ,
1062+ },
1063+ },
1064+ },
1065+ }
1066+ podWithClonedVolume := testsuites.PodDetails {
1067+ Cmd : "grep 'hello world' /mnt/test-1/data" ,
1068+ }
1069+ test := testsuites.DynamicallyProvisionedVolumeCloningTest {
1070+ CSIDriver : testDriver ,
1071+ Pod : pod ,
1072+ PodWithClonedVolume : podWithClonedVolume ,
1073+ StorageClassParameters : map [string ]string {
1074+ "skuName" : "Standard_LRS" ,
1075+ "protocol" : "fuse2" ,
1076+ },
1077+ ClonedStorageClassParameters : map [string ]string {
1078+ "skuName" : "Premium_LRS" ,
1079+ "protocol" : "fuse2" ,
1080+ },
1081+ }
1082+ test .Run (ctx , cs , ns )
1083+ })
10091084})
0 commit comments