Skip to content

Commit 00143d3

Browse files
committed
Add unit tests for the negative provisioned-throughput-on-create parameter
1 parent a8cd293 commit 00143d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/common/parameters_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,13 @@ func TestExtractAndDefaultParameters(t *testing.T) {
344344
labels: map[string]string{},
345345
expectErr: true,
346346
},
347+
{
348+
name: "invalid storage pool parameters, duplicate storagePools",
349+
enableStoragePools: true,
350+
parameters: map[string]string{ParameterKeyType: "hyperdisk-throughput", ParameterKeyReplicationType: "none", ParameterKeyDiskEncryptionKmsKey: "foo/key", ParameterKeyLabels: "key1=value1,key2=value2", ParameterKeyResourceTags: "parent1/key1/value1,parent2/key2/value2", ParameterKeyProvisionedThroughputOnCreate: "-50Mi"},
351+
labels: map[string]string{},
352+
expectErr: true,
353+
},
347354
{
348355
name: "storage pool parameters, enableStoragePools is false",
349356
enableStoragePools: false,

0 commit comments

Comments
 (0)