Skip to content

Commit 88e0ca2

Browse files
committed
Addressed PR comment
Signed-off-by: Renuka <[email protected]>
1 parent 0fcf942 commit 88e0ca2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

file/provider/create_volume_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,8 @@ func TestCreateVolume(t *testing.T) {
512512
ResourceGroup: &provider.ResourceGroup{ID: "rg-1", Name: "rg1"},
513513
},
514514
},
515-
expectedErr: "{Code:InvalidParameter, Type:InvalidRequest, Description: Bandwidth '9000' Mbps is invalid. It must be between '1' Mbps and '8192' Mbps for the specified size of '10' GB.}",
516-
expectedReasonCode: "InvalidParameter",
515+
expectedErr: "{Code:ErrorUnclassified, Type:InvalidRequest, Description: bandwidth must be between '1' Mbps and '8192' Mbps for the specified size of 10 GB. }",
516+
expectedReasonCode: "ErrorUnclassified",
517517
verify: func(t *testing.T, volumeResponse *provider.Volume, err error) {
518518
assert.Nil(t, volumeResponse)
519519
assert.NotNil(t, err)
@@ -532,8 +532,8 @@ func TestCreateVolume(t *testing.T) {
532532
ResourceGroup: &provider.ResourceGroup{ID: "rg-1", Name: "rg1"},
533533
},
534534
},
535-
expectedErr: "{Code:InvalidParameter, Type:InvalidRequest, Description: Bandwidth '9000' Mbps is invalid. It must be between '1' Mbps and '8192' Mbps for the specified size of '10' GB.}",
536-
expectedReasonCode: "InvalidParameter",
535+
expectedErr: "{Code:ErrorUnclassified, Type:InvalidRequest, Description: bandwidth must be between '1' Mbps and '8192' Mbps for the specified size of 10 GB. }",
536+
expectedReasonCode: "ErrorUnclassified",
537537
verify: func(t *testing.T, volumeResponse *provider.Volume, err error) {
538538
assert.Nil(t, volumeResponse)
539539
assert.NotNil(t, err)

0 commit comments

Comments
 (0)