Skip to content

Commit 15e5a6f

Browse files
committed
Validate the provisioned performance of the disk created.
1 parent afa442a commit 15e5a6f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/e2e/tests/multi_zone_e2e_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)