@@ -1064,8 +1064,11 @@ var _ = Describe("GCE PD CSI Driver Multi-Zone", func() {
1064
1064
1065
1065
// Create Disk
1066
1066
volName := testNamePrefix + string (uuid .NewUUID ())
1067
+ wantIOPs , wantThroughput := int64 (7000 ), int64 (250 )
1067
1068
volume , err := controllerClient .CreateVolume (volName , map [string ]string {
1068
- common .ParameterKeyType : common .DiskTypeHdHA ,
1069
+ common .ParameterKeyType : common .DiskTypeHdHA ,
1070
+ common .ParameterKeyProvisionedIOPSOnCreate : strconv .FormatInt (wantIOPs , 10 ),
1071
+ common .ParameterKeyProvisionedThroughputOnCreate : strconv .FormatInt (wantThroughput , 10 ) + "Mi" ,
1069
1072
}, defaultRepdSizeGb , & csi.TopologyRequirement {
1070
1073
Requisite : []* csi.Topology {
1071
1074
{
@@ -1086,6 +1089,8 @@ var _ = Describe("GCE PD CSI Driver Multi-Zone", func() {
1086
1089
Expect (cloudDisk .SizeGb ).To (Equal (defaultRepdSizeGb ))
1087
1090
Expect (cloudDisk .Name ).To (Equal (volName ))
1088
1091
Expect (len (cloudDisk .ReplicaZones )).To (Equal (2 ))
1092
+ Expect (cloudDisk .ProvisionedIops ).To (Equal (wantIOPs ))
1093
+ Expect (cloudDisk .ProvisionedThroughput ).To (Equal (wantThroughput ))
1089
1094
zonesSet := sets .NewString (zones ... )
1090
1095
for _ , replicaZone := range cloudDisk .ReplicaZones {
1091
1096
tokens := strings .Split (replicaZone , "/" )
0 commit comments