summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPooja Jadhav <pooja.jadhav@nttdata.com>2018-06-13 15:47:13 +0530
committerPooja Jadhav <pooja.jadhav@nttdata.com>2018-06-13 15:58:46 +0530
commit5bd8f7150593e167bb7170a521f57e229e15b520 (patch)
tree0645f568855cc0331e3de78802af2c7abd1531c4
parent35b99baf6e0da5b13fa72b50d7a20ff1944776de (diff)
downloadpython-cinderclient-5bd8f7150593e167bb7170a521f57e229e15b520.tar.gz
Fix failing functional test cases
After applying schema validation to volume actions APIs[1], error messages are formatted as per the standards. So the tests are failing because of error messages. This patch fixes failed functional tests by correcting error messages. [1]https://review.openstack.org/#/c/559042/ Change-Id: Id05bf637d77ab401fc0aec5be09eee423bf1a223
-rw-r--r--cinderclient/tests/functional/test_volume_extend_cli.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cinderclient/tests/functional/test_volume_extend_cli.py b/cinderclient/tests/functional/test_volume_extend_cli.py
index 4fa9d73..8dd557a 100644
--- a/cinderclient/tests/functional/test_volume_extend_cli.py
+++ b/cinderclient/tests/functional/test_volume_extend_cli.py
@@ -28,8 +28,10 @@ class CinderVolumeExtendNegativeTests(base.ClientTestBase):
@ddt.data(
('', (r'too few arguments|the following arguments are required')),
- ('-1', (r'New size for extend must be greater than current size')),
- ('0', (r'Invalid input received')),
+ ('-1', (r'Invalid input for field/attribute new_size. Value: -1. '
+ r'-1 is less than the minimum of 1')),
+ ('0', (r'Invalid input for field/attribute new_size. Value: 0. '
+ r'0 is less than the minimum of 1')),
('size', (r'invalid int value')),
('0.2', (r'invalid int value')),
('2 GB', (r'unrecognized arguments')),