diff options
| author | Steve Martinelli <stevemar@ca.ibm.com> | 2015-09-16 15:31:01 -0400 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-09-16 19:33:34 +0000 |
| commit | 817ab3ec0ea5a74aeda12850f39a56f332e9558b (patch) | |
| tree | ab8d78a1f24301750ebffb9658f98fdee3b11cd5 | |
| parent | 1461c0eb179e5bf2bdb2c0527fae8b9785397b56 (diff) | |
| download | python-openstackclient-817ab3ec0ea5a74aeda12850f39a56f332e9558b.tar.gz | |
set image api to 1 for functional tests
devstack now defaults to image api v2, but osc does not support
v2 image create. set the functional tests to use v1 for now
to unwedge the gate.
Closes-Bug: #1496337
Change-Id: Ia02ed761446b8de52c932a424b9c423691ebcceb
| -rw-r--r-- | functional/tests/image/v1/test_image.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functional/tests/image/v1/test_image.py b/functional/tests/image/v1/test_image.py index 9f6ddcc5..17c0c3dd 100644 --- a/functional/tests/image/v1/test_image.py +++ b/functional/tests/image/v1/test_image.py @@ -10,6 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. +import os import uuid from functional.common import test @@ -25,6 +26,7 @@ class ImageTests(test.TestCase): @classmethod def setUpClass(cls): + os.environ['OS_IMAGE_API_VERSION'] = '1' opts = cls.get_show_opts(cls.FIELDS) raw_output = cls.openstack('image create ' + cls.NAME + opts) expected = cls.NAME + '\n' |
