@@ -54,7 +54,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
5454 })
5555
5656 testDriver = driver .InitSMBDriver ()
57- ginkgo .It ("should create a volume after driver restart [smb.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
57+ ginkgo .It ("should create a volume after driver restart" , func (ctx ginkgo.SpecContext ) {
5858 ginkgo .Skip ("test case is disabled since node logs would be lost after driver restart" )
5959 pod := testsuites.PodDetails {
6060 Cmd : convertToPowershellCommandIfNecessary ("echo 'hello world' >> /mnt/test-1/data && while true; do sleep 3600; done" ),
@@ -102,7 +102,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
102102 test .Run (ctx , cs , ns )
103103 })
104104
105- ginkgo .It ("should create a volume on demand with mount options [smb.csi.k8s.io] [ Windows]" , func (ctx ginkgo.SpecContext ) {
105+ ginkgo .It ("should create a volume on demand with mount options [Windows]" , func (ctx ginkgo.SpecContext ) {
106106 pods := []testsuites.PodDetails {
107107 {
108108 Cmd : convertToPowershellCommandIfNecessary ("echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ),
@@ -137,7 +137,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
137137 test .Run (ctx , cs , ns )
138138 })
139139
140- ginkgo .It ("should create multiple PV objects, bind to PVCs and attach all to different pods on the same node [smb.csi.k8s.io] [ Windows]" , func (ctx ginkgo.SpecContext ) {
140+ ginkgo .It ("should create multiple PV objects, bind to PVCs and attach all to different pods on the same node [Windows]" , func (ctx ginkgo.SpecContext ) {
141141 pods := []testsuites.PodDetails {
142142 {
143143 Cmd : convertToPowershellCommandIfNecessary ("while true; do echo $(date -u) >> /mnt/test-1/data; sleep 100; done" ),
@@ -178,7 +178,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
178178 })
179179
180180 // Track issue https://github.com/kubernetes/kubernetes/issues/70505
181- ginkgo .It ("should create a volume on demand and mount it as readOnly in a pod [smb.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
181+ ginkgo .It ("should create a volume on demand and mount it as readOnly in a pod" , func (ctx ginkgo.SpecContext ) {
182182 // Windows volume does not support readOnly
183183 skipIfTestingInWindowsCluster ()
184184 pods := []testsuites.PodDetails {
@@ -206,7 +206,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
206206 test .Run (ctx , cs , ns )
207207 })
208208
209- ginkgo .It ("should create a deployment object, write and read to it, delete the pod and write and read to it again [smb.csi.k8s.io] [ Windows]" , func (ctx ginkgo.SpecContext ) {
209+ ginkgo .It ("should create a deployment object, write and read to it, delete the pod and write and read to it again [Windows]" , func (ctx ginkgo.SpecContext ) {
210210 skipIfTestingInWindowsCluster ()
211211 pod := testsuites.PodDetails {
212212 Cmd : convertToPowershellCommandIfNecessary ("echo 'hello world' >> /mnt/test-1/data && while true; do sleep 100; done" ),
@@ -246,7 +246,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
246246 })
247247
248248 // Track issue https://github.com/kubernetes-csi/csi-driver-smb/issues/834
249- ginkgo .It (fmt .Sprintf ("should delete PV with reclaimPolicy even if it contains read-only subdir %q [smb.csi.k8s.io] " , v1 .PersistentVolumeReclaimDelete ), func (ctx ginkgo.SpecContext ) {
249+ ginkgo .It (fmt .Sprintf ("should delete PV with reclaimPolicy even if it contains read-only subdir %q" , v1 .PersistentVolumeReclaimDelete ), func (ctx ginkgo.SpecContext ) {
250250 skipIfTestingInWindowsCluster ()
251251 reclaimPolicy := v1 .PersistentVolumeReclaimDelete
252252 pod := testsuites.PodDetails {
@@ -286,7 +286,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
286286 test .Run (ctx , cs , ns )
287287 })
288288
289- ginkgo .It (fmt .Sprintf ("should delete PV with reclaimPolicy %q [smb.csi.k8s.io] [ Windows]" , v1 .PersistentVolumeReclaimDelete ), func (ctx ginkgo.SpecContext ) {
289+ ginkgo .It (fmt .Sprintf ("should delete PV with reclaimPolicy %q [Windows]" , v1 .PersistentVolumeReclaimDelete ), func (ctx ginkgo.SpecContext ) {
290290 reclaimPolicy := v1 .PersistentVolumeReclaimDelete
291291 volumes := []testsuites.VolumeDetails {
292292 {
@@ -302,7 +302,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
302302 test .Run (ctx , cs , ns )
303303 })
304304
305- ginkgo .It (fmt .Sprintf ("should retain PV with reclaimPolicy %q [smb.csi.k8s.io] [ Windows]" , v1 .PersistentVolumeReclaimRetain ), func (ctx ginkgo.SpecContext ) {
305+ ginkgo .It (fmt .Sprintf ("should retain PV with reclaimPolicy %q [Windows]" , v1 .PersistentVolumeReclaimRetain ), func (ctx ginkgo.SpecContext ) {
306306 reclaimPolicy := v1 .PersistentVolumeReclaimRetain
307307 volumes := []testsuites.VolumeDetails {
308308 {
@@ -319,7 +319,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
319319 test .Run (ctx , cs , ns )
320320 })
321321
322- ginkgo .It ("should create a pod with multiple volumes [smb.csi.k8s.io] [ Windows]" , func (ctx ginkgo.SpecContext ) {
322+ ginkgo .It ("should create a pod with multiple volumes [Windows]" , func (ctx ginkgo.SpecContext ) {
323323 volumes := []testsuites.VolumeDetails {}
324324 for i := 1 ; i <= 6 ; i ++ {
325325 volume := testsuites.VolumeDetails {
@@ -348,7 +348,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
348348 test .Run (ctx , cs , ns )
349349 })
350350
351- ginkgo .It ("should create a pod with volume mount subpath [smb.csi.k8s.io] [ Windows]" , func (ctx ginkgo.SpecContext ) {
351+ ginkgo .It ("should create a pod with volume mount subpath [Windows]" , func (ctx ginkgo.SpecContext ) {
352352 pods := []testsuites.PodDetails {
353353 {
354354 Cmd : convertToPowershellCommandIfNecessary ("echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ),
@@ -373,7 +373,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
373373 test .Run (ctx , cs , ns )
374374 })
375375
376- ginkgo .It ("should clone a volume from an existing volume [smb.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
376+ ginkgo .It ("should clone a volume from an existing volume" , func (ctx ginkgo.SpecContext ) {
377377 skipIfTestingInWindowsCluster ()
378378
379379 pod := testsuites.PodDetails {
@@ -409,7 +409,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
409409 test .Run (ctx , cs , ns )
410410 })
411411
412- ginkgo .It ("should create a volume on demand with retaining subdir on delete [smb.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
412+ ginkgo .It ("should create a volume on demand with retaining subdir on delete" , func (ctx ginkgo.SpecContext ) {
413413 pods := []testsuites.PodDetails {
414414 {
415415 Cmd : convertToPowershellCommandIfNecessary ("echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ),
@@ -443,7 +443,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
443443 test .Run (ctx , cs , ns )
444444 })
445445
446- ginkgo .It ("should create a volume on demand with archive on archive [smb.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
446+ ginkgo .It ("should create a volume on demand with archive on archive" , func (ctx ginkgo.SpecContext ) {
447447 pods := []testsuites.PodDetails {
448448 {
449449 Cmd : convertToPowershellCommandIfNecessary ("echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ),
@@ -477,7 +477,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
477477 test .Run (ctx , cs , ns )
478478 })
479479
480- ginkgo .It ("should create a volume on demand with archive on archive subDir [smb.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
480+ ginkgo .It ("should create a volume on demand with archive on archive subDir" , func (ctx ginkgo.SpecContext ) {
481481 pods := []testsuites.PodDetails {
482482 {
483483 Cmd : convertToPowershellCommandIfNecessary ("echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ),
@@ -510,4 +510,27 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
510510 }
511511 test .Run (ctx , cs , ns )
512512 })
513+
514+ ginkgo .It ("should create a volume on demand and resize it" , func (ctx ginkgo.SpecContext ) {
515+ pods := []testsuites.PodDetails {
516+ {
517+ Cmd : "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ,
518+ Volumes : []testsuites.VolumeDetails {
519+ {
520+ ClaimSize : "10Gi" ,
521+ VolumeMount : testsuites.VolumeMountDetails {
522+ NameGenerate : "test-volume-" ,
523+ MountPathGenerate : "/mnt/test-" ,
524+ },
525+ },
526+ },
527+ },
528+ }
529+ test := testsuites.DynamicallyProvisionedResizeVolumeTest {
530+ CSIDriver : testDriver ,
531+ Pods : pods ,
532+ StorageClassParameters : archiveSubDirStorageClassParameters ,
533+ }
534+ test .Run (ctx , cs , ns )
535+ })
513536})
0 commit comments