summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@gmail.com>2018-09-11 11:08:34 -0500
committerSean McGinnis <sean.mcginnis@gmail.com>2018-09-11 18:04:14 +0000
commit6b2bc4949287984b41df68f87ce7ccacee663926 (patch)
tree5b119ad6822e13897514f135a9e83e8b5260445a
parentb6890fce51b001cb76418e1fe2df085406049b2e (diff)
downloadpython-cinderclient-6b2bc4949287984b41df68f87ce7ccacee663926.tar.gz
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
-rw-r--r--cinderclient/tests/functional/test_volume_create_cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cinderclient/tests/functional/test_volume_create_cli.py b/cinderclient/tests/functional/test_volume_create_cli.py
index 5368510..87eaff2 100644
--- a/cinderclient/tests/functional/test_volume_create_cli.py
+++ b/cinderclient/tests/functional/test_volume_create_cli.py
@@ -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')),