Skip to content

Commit 817ab3e

Browse files
author
Steve Martinelli
committed
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
1 parent 1461c0e commit 817ab3e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

functional/tests/image/v1/test_image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13+
import os
1314
import uuid
1415

1516
from functional.common import test
@@ -25,6 +26,7 @@ class ImageTests(test.TestCase):
2526

2627
@classmethod
2728
def setUpClass(cls):
29+
os.environ['OS_IMAGE_API_VERSION'] = '1'
2830
opts = cls.get_show_opts(cls.FIELDS)
2931
raw_output = cls.openstack('image create ' + cls.NAME + opts)
3032
expected = cls.NAME + '\n'

0 commit comments

Comments
 (0)