@@ -1064,8 +1064,11 @@ var _ = Describe("GCE PD CSI Driver Multi-Zone", func() {
10641064
10651065 // Create Disk
10661066 volName := testNamePrefix + string (uuid .NewUUID ())
1067+ wantIOPs , wantThroughput := int64 (7000 ), int64 (250 )
10671068 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" ,
10691072 }, defaultRepdSizeGb , & csi.TopologyRequirement {
10701073 Requisite : []* csi.Topology {
10711074 {
@@ -1086,6 +1089,8 @@ var _ = Describe("GCE PD CSI Driver Multi-Zone", func() {
10861089 Expect (cloudDisk .SizeGb ).To (Equal (defaultRepdSizeGb ))
10871090 Expect (cloudDisk .Name ).To (Equal (volName ))
10881091 Expect (len (cloudDisk .ReplicaZones )).To (Equal (2 ))
1092+ Expect (cloudDisk .ProvisionedIops ).To (Equal (wantIOPs ))
1093+ Expect (cloudDisk .ProvisionedThroughput ).To (Equal (wantThroughput ))
10891094 zonesSet := sets .NewString (zones ... )
10901095 for _ , replicaZone := range cloudDisk .ReplicaZones {
10911096 tokens := strings .Split (replicaZone , "/" )
0 commit comments