@@ -31,10 +31,11 @@ import (
3131const (
3232 testNamePrefix = "gcepd-csi-e2e-"
3333
34- defaultSizeGb int64 = 5
35- readyState = "READY"
36- standardDiskType = "pd-standard"
37- ssdDiskType = "pd-ssd"
34+ defaultSizeGb int64 = 5
35+ defaultRepdSizeGb int64 = 200
36+ readyState = "READY"
37+ standardDiskType = "pd-standard"
38+ ssdDiskType = "pd-ssd"
3839)
3940
4041var _ = Describe ("GCE PD CSI Driver" , func () {
@@ -171,15 +172,15 @@ var _ = Describe("GCE PD CSI Driver", func() {
171172 volName := testNamePrefix + string (uuid .NewUUID ())
172173 volID , err := controllerClient .CreateVolume (volName , map [string ]string {
173174 common .ParameterKeyReplicationType : "regional-pd" ,
174- }, defaultSizeGb , nil )
175+ }, defaultRepdSizeGb , nil )
175176 Expect (err ).To (BeNil (), "CreateVolume failed with error: %v" , err )
176177
177178 // Validate Disk Created
178179 cloudDisk , err := betaComputeService .RegionDisks .Get (p , region , volName ).Do ()
179180 Expect (err ).To (BeNil (), "Could not get disk from cloud directly" )
180181 Expect (cloudDisk .Type ).To (ContainSubstring (standardDiskType ))
181182 Expect (cloudDisk .Status ).To (Equal (readyState ))
182- Expect (cloudDisk .SizeGb ).To (Equal (defaultSizeGb ))
183+ Expect (cloudDisk .SizeGb ).To (Equal (defaultRepdSizeGb ))
183184 Expect (cloudDisk .Name ).To (Equal (volName ))
184185 Expect (len (cloudDisk .ReplicaZones )).To (Equal (2 ))
185186 for _ , replicaZone := range cloudDisk .ReplicaZones {
@@ -310,15 +311,15 @@ var _ = Describe("GCE PD CSI Driver", func() {
310311 volName := testNamePrefix + string (uuid .NewUUID ())
311312 volId , err := controllerClient .CreateVolume (volName , map [string ]string {
312313 common .ParameterKeyReplicationType : "regional-pd" ,
313- }, defaultSizeGb , nil )
314+ }, defaultRepdSizeGb , nil )
314315 Expect (err ).To (BeNil (), "CreateVolume failed with error: %v" , err )
315316
316317 // Validate Disk Created
317318 cloudDisk , err := betaComputeService .RegionDisks .Get (p , region , volName ).Do ()
318319 Expect (err ).To (BeNil (), "Could not get disk from cloud directly" )
319320 Expect (cloudDisk .Type ).To (ContainSubstring (standardDiskType ))
320321 Expect (cloudDisk .Status ).To (Equal (readyState ))
321- Expect (cloudDisk .SizeGb ).To (Equal (defaultSizeGb ))
322+ Expect (cloudDisk .SizeGb ).To (Equal (defaultRepdSizeGb ))
322323 Expect (cloudDisk .Name ).To (Equal (volName ))
323324 Expect (len (cloudDisk .ReplicaZones )).To (Equal (2 ))
324325 for _ , replicaZone := range cloudDisk .ReplicaZones {
0 commit comments