@@ -52,7 +52,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
52
52
})
53
53
54
54
testDriver = driver .InitNFSDriver ()
55
- ginkgo .It ("should create a volume on demand with mount options [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
55
+ ginkgo .It ("should create a volume on demand with mount options" , func (ctx ginkgo.SpecContext ) {
56
56
pods := []testsuites.PodDetails {
57
57
{
58
58
Cmd : "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ,
@@ -75,7 +75,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
75
75
test .Run (ctx , cs , ns )
76
76
})
77
77
78
- ginkgo .It ("should create a volume on demand with zero mountPermissions [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
78
+ ginkgo .It ("should create a volume on demand with zero mountPermissions" , func (ctx ginkgo.SpecContext ) {
79
79
pods := []testsuites.PodDetails {
80
80
{
81
81
Cmd : "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ,
@@ -98,7 +98,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
98
98
test .Run (ctx , cs , ns )
99
99
})
100
100
101
- ginkgo .It ("should create multiple PV objects, bind to PVCs and attach all to different pods on the same node [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
101
+ ginkgo .It ("should create multiple PV objects, bind to PVCs and attach all to different pods on the same node" , func (ctx ginkgo.SpecContext ) {
102
102
pods := []testsuites.PodDetails {
103
103
{
104
104
Cmd : "while true; do echo $(date -u) >> /mnt/test-1/data; sleep 100; done" ,
@@ -135,7 +135,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
135
135
})
136
136
137
137
// Track issue https://github.com/kubernetes/kubernetes/issues/70505
138
- ginkgo .It ("should create a volume on demand and mount it as readOnly in a pod [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
138
+ ginkgo .It ("should create a volume on demand and mount it as readOnly in a pod" , func (ctx ginkgo.SpecContext ) {
139
139
pods := []testsuites.PodDetails {
140
140
{
141
141
Cmd : "touch /mnt/test-1/data" ,
@@ -159,7 +159,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
159
159
test .Run (ctx , cs , ns )
160
160
})
161
161
162
- ginkgo .It ("should create a deployment object, write and read to it, delete the pod and write and read to it again [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
162
+ ginkgo .It ("should create a deployment object, write and read to it, delete the pod and write and read to it again" , func (ctx ginkgo.SpecContext ) {
163
163
pod := testsuites.PodDetails {
164
164
Cmd : "echo 'hello world' >> /mnt/test-1/data && while true; do sleep 100; done" ,
165
165
Volumes : []testsuites.VolumeDetails {
@@ -188,7 +188,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
188
188
test .Run (ctx , cs , ns )
189
189
})
190
190
191
- ginkgo .It ("[subDir]should create a deployment object, write and read to it, delete the pod and write and read to it again [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
191
+ ginkgo .It ("[subDir]should create a deployment object, write and read to it, delete the pod and write and read to it again" , func (ctx ginkgo.SpecContext ) {
192
192
pod := testsuites.PodDetails {
193
193
Cmd : "echo 'hello world' >> /mnt/test-1/data && while true; do sleep 100; done" ,
194
194
Volumes : []testsuites.VolumeDetails {
@@ -217,7 +217,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
217
217
test .Run (ctx , cs , ns )
218
218
})
219
219
220
- ginkgo .It (fmt .Sprintf ("should delete PV with reclaimPolicy %q [nfs.csi.k8s.io] " , v1 .PersistentVolumeReclaimDelete ), func (ctx ginkgo.SpecContext ) {
220
+ ginkgo .It (fmt .Sprintf ("should delete PV with reclaimPolicy %q" , v1 .PersistentVolumeReclaimDelete ), func (ctx ginkgo.SpecContext ) {
221
221
reclaimPolicy := v1 .PersistentVolumeReclaimDelete
222
222
volumes := []testsuites.VolumeDetails {
223
223
{
@@ -234,7 +234,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
234
234
test .Run (ctx , cs , ns )
235
235
})
236
236
237
- ginkgo .It (fmt .Sprintf ("should retain PV with reclaimPolicy %q [nfs.csi.k8s.io] " , v1 .PersistentVolumeReclaimRetain ), func (ctx ginkgo.SpecContext ) {
237
+ ginkgo .It (fmt .Sprintf ("should retain PV with reclaimPolicy %q" , v1 .PersistentVolumeReclaimRetain ), func (ctx ginkgo.SpecContext ) {
238
238
reclaimPolicy := v1 .PersistentVolumeReclaimRetain
239
239
volumes := []testsuites.VolumeDetails {
240
240
{
@@ -251,7 +251,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
251
251
test .Run (ctx , cs , ns )
252
252
})
253
253
254
- ginkgo .It ("should create a pod with multiple volumes [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
254
+ ginkgo .It ("should create a pod with multiple volumes" , func (ctx ginkgo.SpecContext ) {
255
255
volumes := []testsuites.VolumeDetails {}
256
256
for i := 1 ; i <= 6 ; i ++ {
257
257
volume := testsuites.VolumeDetails {
@@ -278,7 +278,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
278
278
test .Run (ctx , cs , ns )
279
279
})
280
280
281
- ginkgo .It ("should create a pod with volume mount subpath [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
281
+ ginkgo .It ("should create a pod with volume mount subpath" , func (ctx ginkgo.SpecContext ) {
282
282
pods := []testsuites.PodDetails {
283
283
{
284
284
Cmd : convertToPowershellCommandIfNecessary ("echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ),
@@ -301,7 +301,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
301
301
test .Run (ctx , cs , ns )
302
302
})
303
303
304
- ginkgo .It ("should create a CSI inline volume [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
304
+ ginkgo .It ("should create a CSI inline volume" , func (ctx ginkgo.SpecContext ) {
305
305
pods := []testsuites.PodDetails {
306
306
{
307
307
Cmd : convertToPowershellCommandIfNecessary ("echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ),
@@ -328,7 +328,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
328
328
test .Run (ctx , cs , ns )
329
329
})
330
330
331
- ginkgo .It ("should create a volume on demand with retaining subdir on delete [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
331
+ ginkgo .It ("should create a volume on demand with retaining subdir on delete" , func (ctx ginkgo.SpecContext ) {
332
332
pods := []testsuites.PodDetails {
333
333
{
334
334
Cmd : "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ,
@@ -351,7 +351,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
351
351
test .Run (ctx , cs , ns )
352
352
})
353
353
354
- ginkgo .It ("should create a volume on demand with archive on delete [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
354
+ ginkgo .It ("should create a volume on demand with archive on delete" , func (ctx ginkgo.SpecContext ) {
355
355
pods := []testsuites.PodDetails {
356
356
{
357
357
Cmd : "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ,
@@ -374,7 +374,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
374
374
test .Run (ctx , cs , ns )
375
375
})
376
376
377
- ginkgo .It ("should create a volume on demand with archive subdir on delete [nfs.csi.k8s.io] " , func (ctx ginkgo.SpecContext ) {
377
+ ginkgo .It ("should create a volume on demand with archive subdir on delete" , func (ctx ginkgo.SpecContext ) {
378
378
pods := []testsuites.PodDetails {
379
379
{
380
380
Cmd : "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ,
@@ -396,4 +396,27 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
396
396
}
397
397
test .Run (ctx , cs , ns )
398
398
})
399
+
400
+ ginkgo .It ("should create a volume on demand and resize it" , func (ctx ginkgo.SpecContext ) {
401
+ pods := []testsuites.PodDetails {
402
+ {
403
+ Cmd : "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data" ,
404
+ Volumes : []testsuites.VolumeDetails {
405
+ {
406
+ ClaimSize : "10Gi" ,
407
+ VolumeMount : testsuites.VolumeMountDetails {
408
+ NameGenerate : "test-volume-" ,
409
+ MountPathGenerate : "/mnt/test-" ,
410
+ },
411
+ },
412
+ },
413
+ },
414
+ }
415
+ test := testsuites.DynamicallyProvisionedResizeVolumeTest {
416
+ CSIDriver : testDriver ,
417
+ Pods : pods ,
418
+ StorageClassParameters : archiveSubDirStorageClassParameters ,
419
+ }
420
+ test .Run (ctx , cs , ns )
421
+ })
399
422
})
0 commit comments