@@ -1789,7 +1789,7 @@ func TestCreateVolumeWithVolumeAttributeClassParameters(t *testing.T) {
1789
1789
},
1790
1790
},
1791
1791
},
1792
- MutableParameters : map [string ]string {"iops" : "20000" , "throughput" : "600Mi " },
1792
+ MutableParameters : map [string ]string {"iops" : "20000" , "throughput" : "600 " },
1793
1793
},
1794
1794
expIops : 20000 ,
1795
1795
expThroughput : 600 ,
@@ -1822,7 +1822,7 @@ func TestCreateVolumeWithVolumeAttributeClassParameters(t *testing.T) {
1822
1822
},
1823
1823
},
1824
1824
},
1825
- MutableParameters : map [string ]string {"iops" : "20000" , "throughput" : "600Mi " },
1825
+ MutableParameters : map [string ]string {"iops" : "20000" , "throughput" : "600 " },
1826
1826
},
1827
1827
expIops : 0 ,
1828
1828
expThroughput : 0 ,
@@ -1890,7 +1890,7 @@ func TestVolumeModifyOperation(t *testing.T) {
1890
1890
name : "Update volume with valid parameters" ,
1891
1891
req : & csi.ControllerModifyVolumeRequest {
1892
1892
VolumeId : testVolumeID ,
1893
- MutableParameters : map [string ]string {"iops" : "20000" , "throughput" : "600Mi " },
1893
+ MutableParameters : map [string ]string {"iops" : "20000" , "throughput" : "600 " },
1894
1894
},
1895
1895
diskType : "hyperdisk-balanced" ,
1896
1896
params : & common.DiskParameters {
@@ -1906,7 +1906,7 @@ func TestVolumeModifyOperation(t *testing.T) {
1906
1906
name : "Update volume with invalid parameters" ,
1907
1907
req : & csi.ControllerModifyVolumeRequest {
1908
1908
VolumeId : testVolumeID ,
1909
- MutableParameters : map [string ]string {"iops" : "0" , "throughput" : "0Mi " },
1909
+ MutableParameters : map [string ]string {"iops" : "0" , "throughput" : "0 " },
1910
1910
},
1911
1911
diskType : "hyperdisk-balanced" ,
1912
1912
params : & common.DiskParameters {
@@ -1922,7 +1922,7 @@ func TestVolumeModifyOperation(t *testing.T) {
1922
1922
name : "Update volume with valid parameters but invalid disk type" ,
1923
1923
req : & csi.ControllerModifyVolumeRequest {
1924
1924
VolumeId : testVolumeID ,
1925
- MutableParameters : map [string ]string {"iops" : "20000" , "throughput" : "600Mi " },
1925
+ MutableParameters : map [string ]string {"iops" : "20000" , "throughput" : "600 " },
1926
1926
},
1927
1927
diskType : "pd-ssd" ,
1928
1928
params : & common.DiskParameters {
@@ -2053,7 +2053,7 @@ func TestVolumeModifyErrorHandling(t *testing.T) {
2053
2053
},
2054
2054
},
2055
2055
modifyReq : & csi.ControllerModifyVolumeRequest {
2056
- MutableParameters : map [string ]string {"iops" : "3001" , "throughput" : "151Mi " },
2056
+ MutableParameters : map [string ]string {"iops" : "3001" , "throughput" : "151 " },
2057
2057
},
2058
2058
modifyVolumeErrors : map [* meta.Key ]error {
2059
2059
meta .ZonalKey (name , "us-central1-a" ): & googleapi.Error {
@@ -2089,7 +2089,7 @@ func TestVolumeModifyErrorHandling(t *testing.T) {
2089
2089
},
2090
2090
},
2091
2091
modifyReq : & csi.ControllerModifyVolumeRequest {
2092
- MutableParameters : map [string ]string {"iops" : "10000" , "throughput" : "2400Mi " },
2092
+ MutableParameters : map [string ]string {"iops" : "10000" , "throughput" : "2400 " },
2093
2093
},
2094
2094
modifyVolumeErrors : map [* meta.Key ]error {
2095
2095
meta .ZonalKey (name , "us-central1-a" ): & googleapi.Error {Code : int (codes .InvalidArgument ), Message : "InvalidArgument" },
0 commit comments