Fix functional error check for invalid volume create size
With the api-schema enforcement on the Cinder API side, the error message returned when specifying a volume creation of 0 has changed. This results in our functional tests failing. Change-Id: I1a9a13f683134faa01ad50f7f073db8b1845a901
This commit is contained in:
@@ -26,8 +26,8 @@ class CinderVolumeNegativeTests(base.ClientTestBase):
|
|||||||
|
|
||||||
@ddt.data(
|
@ddt.data(
|
||||||
('', (r'Size is a required parameter')),
|
('', (r'Size is a required parameter')),
|
||||||
('-1', (r'Invalid volume size provided for create request')),
|
('-1', (r'Invalid input for field/attribute size')),
|
||||||
('0', (r"Volume size '0' must be an integer and greater than 0")),
|
('0', (r"Invalid input for field/attribute size")),
|
||||||
('size', (r'invalid int value')),
|
('size', (r'invalid int value')),
|
||||||
('0.2', (r'invalid int value')),
|
('0.2', (r'invalid int value')),
|
||||||
('2 GB', (r'unrecognized arguments')),
|
('2 GB', (r'unrecognized arguments')),
|
||||||
|
Reference in New Issue
Block a user