Skip to content

Commit c3d959e

Browse files
committed
fixed unit tests
Signed-off-by: Arashad Ahamad <[email protected]>
1 parent 3591267 commit c3d959e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: pkg/ibmcsidriver/controller_helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func getRequestedCapacity(capRange *csi.CapacityRange, profileName string) (int6
4141
if profileName == SDPProfile { // SDP profile minimum size is 1GB
4242
capBytes = MinimumSDPVolumeSizeInBytes
4343
} else {
44-
capBytes = utils.MinimumVolumeSizeInBytes // tierd and custom profile minimum size is 10 GB
44+
capBytes = utils.MinimumVolumeSizeInBytes // tier and custom profile minimum size is 10 GB
4545
}
4646
// returns in GiB
4747
return capBytes, nil

Diff for: pkg/ibmcsidriver/controller_helper_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ func TestGetVolumeParameters(t *testing.T) {
193193
EncryptionKey: "key",
194194
ClassVersion: "",
195195
Generation: "generation",
196+
Throughput: "1000",
196197
IOPS: noIops,
197198
},
198199
},
@@ -202,6 +203,7 @@ func TestGetVolumeParameters(t *testing.T) {
202203
Tags: []string{createdByIBM},
203204
Profile: &provider.Profile{Name: "general-purpose"},
204205
ResourceGroup: &provider.ResourceGroup{ID: "myresourcegroups"},
206+
Bandwidth: 1000,
205207
},
206208
Region: "us-south-test",
207209
Iops: &noIops,

0 commit comments

Comments
 (0)