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:
Sean McGinnis
2018-09-11 11:08:34 -05:00
parent b6890fce51
commit 6b2bc49492

View File

@@ -26,8 +26,8 @@ class CinderVolumeNegativeTests(base.ClientTestBase):
@ddt.data(
('', (r'Size is a required parameter')),
('-1', (r'Invalid volume size provided for create request')),
('0', (r"Volume size '0' must be an integer and greater than 0")),
('-1', (r'Invalid input for field/attribute size')),
('0', (r"Invalid input for field/attribute size")),
('size', (r'invalid int value')),
('0.2', (r'invalid int value')),
('2 GB', (r'unrecognized arguments')),