From 6b2bc4949287984b41df68f87ce7ccacee663926 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 11 Sep 2018 11:08:34 -0500 Subject: 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 --- cinderclient/tests/functional/test_volume_create_cli.py | 4 ++-- 1 file 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')), -- cgit v1.2.1