@@ -31,10 +31,11 @@ import (
31
31
const (
32
32
testNamePrefix = "gcepd-csi-e2e-"
33
33
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"
38
39
)
39
40
40
41
var _ = Describe ("GCE PD CSI Driver" , func () {
@@ -171,15 +172,15 @@ var _ = Describe("GCE PD CSI Driver", func() {
171
172
volName := testNamePrefix + string (uuid .NewUUID ())
172
173
volID , err := controllerClient .CreateVolume (volName , map [string ]string {
173
174
common .ParameterKeyReplicationType : "regional-pd" ,
174
- }, defaultSizeGb , nil )
175
+ }, defaultRepdSizeGb , nil )
175
176
Expect (err ).To (BeNil (), "CreateVolume failed with error: %v" , err )
176
177
177
178
// Validate Disk Created
178
179
cloudDisk , err := betaComputeService .RegionDisks .Get (p , region , volName ).Do ()
179
180
Expect (err ).To (BeNil (), "Could not get disk from cloud directly" )
180
181
Expect (cloudDisk .Type ).To (ContainSubstring (standardDiskType ))
181
182
Expect (cloudDisk .Status ).To (Equal (readyState ))
182
- Expect (cloudDisk .SizeGb ).To (Equal (defaultSizeGb ))
183
+ Expect (cloudDisk .SizeGb ).To (Equal (defaultRepdSizeGb ))
183
184
Expect (cloudDisk .Name ).To (Equal (volName ))
184
185
Expect (len (cloudDisk .ReplicaZones )).To (Equal (2 ))
185
186
for _ , replicaZone := range cloudDisk .ReplicaZones {
@@ -310,15 +311,15 @@ var _ = Describe("GCE PD CSI Driver", func() {
310
311
volName := testNamePrefix + string (uuid .NewUUID ())
311
312
volId , err := controllerClient .CreateVolume (volName , map [string ]string {
312
313
common .ParameterKeyReplicationType : "regional-pd" ,
313
- }, defaultSizeGb , nil )
314
+ }, defaultRepdSizeGb , nil )
314
315
Expect (err ).To (BeNil (), "CreateVolume failed with error: %v" , err )
315
316
316
317
// Validate Disk Created
317
318
cloudDisk , err := betaComputeService .RegionDisks .Get (p , region , volName ).Do ()
318
319
Expect (err ).To (BeNil (), "Could not get disk from cloud directly" )
319
320
Expect (cloudDisk .Type ).To (ContainSubstring (standardDiskType ))
320
321
Expect (cloudDisk .Status ).To (Equal (readyState ))
321
- Expect (cloudDisk .SizeGb ).To (Equal (defaultSizeGb ))
322
+ Expect (cloudDisk .SizeGb ).To (Equal (defaultRepdSizeGb ))
322
323
Expect (cloudDisk .Name ).To (Equal (volName ))
323
324
Expect (len (cloudDisk .ReplicaZones )).To (Equal (2 ))
324
325
for _ , replicaZone := range cloudDisk .ReplicaZones {
0 commit comments