@@ -205,7 +205,6 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
205205 Cmd : "touch /mnt/test-1/data" ,
206206 Volumes : []testsuites.VolumeDetails {
207207 {
208- FSType : "ext4" ,
209208 ClaimSize : "10Gi" ,
210209 VolumeMount : testsuites.VolumeMountDetails {
211210 NameGenerate : "test-volume-" ,
@@ -227,6 +226,66 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
227226 test .Run (ctx , cs , ns )
228227 })
229228
229+ ginkgo .It ("should create a blobfuse volume on demand and mount it as readOnly when volume access mode is readonly" , func (ctx ginkgo.SpecContext ) {
230+ pods := []testsuites.PodDetails {
231+ {
232+ Cmd : "touch /mnt/test-1/data" ,
233+ Volumes : []testsuites.VolumeDetails {
234+ {
235+ ClaimSize : "10Gi" ,
236+ VolumeMount : testsuites.VolumeMountDetails {
237+ NameGenerate : "test-volume-" ,
238+ MountPathGenerate : "/mnt/test-" ,
239+ },
240+ AccessModes : []v1.PersistentVolumeAccessMode {v1 .ReadOnlyMany },
241+ },
242+ },
243+ },
244+ }
245+ test := testsuites.DynamicallyProvisionedReadOnlyVolumeTest {
246+ CSIDriver : testDriver ,
247+ Pods : pods ,
248+ StorageClassParameters : map [string ]string {"skuName" : "Standard_GRS" },
249+ }
250+ if isAzureStackCloud {
251+ test .StorageClassParameters = map [string ]string {"skuName" : "Standard_LRS" }
252+ }
253+ test .Run (ctx , cs , ns )
254+ })
255+
256+ ginkgo .It ("should create a nfs volume on demand and mount it as readOnly when volume access mode is readonly" , func (ctx ginkgo.SpecContext ) {
257+ if isAzureStackCloud {
258+ ginkgo .Skip ("test case is not available for Azure Stack" )
259+ }
260+ pods := []testsuites.PodDetails {
261+ {
262+ Cmd : "touch /mnt/test-1/data" ,
263+ Volumes : []testsuites.VolumeDetails {
264+ {
265+ ClaimSize : "10Gi" ,
266+ MountOptions : []string {
267+ "nconnect=8" ,
268+ },
269+ VolumeMount : testsuites.VolumeMountDetails {
270+ NameGenerate : "test-volume-" ,
271+ MountPathGenerate : "/mnt/test-" ,
272+ },
273+ AccessModes : []v1.PersistentVolumeAccessMode {v1 .ReadOnlyMany },
274+ },
275+ },
276+ },
277+ }
278+ test := testsuites.DynamicallyProvisionedReadOnlyVolumeTest {
279+ CSIDriver : testDriver ,
280+ Pods : pods ,
281+ StorageClassParameters : map [string ]string {
282+ "skuName" : "Premium_LRS" ,
283+ "protocol" : "nfs" ,
284+ },
285+ }
286+ test .Run (ctx , cs , ns )
287+ })
288+
230289 ginkgo .It ("should create multiple PV objects, bind to PVCs and attach all to different pods on the same node" , func (ctx ginkgo.SpecContext ) {
231290 pods := []testsuites.PodDetails {
232291 {
0 commit comments