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