summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorBrian Rosmaita <rosmaita.fossdev@gmail.com>2018-03-15 20:32:40 -0400
committerBrian Rosmaita <rosmaita.fossdev@gmail.com>2018-03-28 22:32:44 -0400
commit32b83078194f40e0d3445d95cf04ce97091fd229 (patch)
tree4dd3856a7847b6f88a9c6d04a34c340199917cff /tox.ini
parent4cb8b030623ec3980f3897e8b5c0f4d20acff2ed (diff)
downloadpython-glanceclient-32b83078194f40e0d3445d95cf04ce97091fd229.tar.gz
Split glanceclient functional tests
Prepare for the Image API v1 to be removed from glance during Rocky by splitting the functional tests that hit v1 from the tests that hit v2. Introduce a new job that runs the functional-v1 tests against a devstack running glance stable/queens, and configure this job for both check and gate for the glanceclient. The v2 functional tests continue to be run for both check and gate against a devstack running glance master. Change-Id: Ifa98ada26a84e4cca3ea8c98173f61a6174cca27
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini15
1 files changed, 14 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index e6915cc..d50c8ee 100644
--- a/tox.ini
+++ b/tox.ini
@@ -30,7 +30,20 @@ warnerror = True
# See glanceclient/tests/functional/README.rst
# for information on running the functional tests.
setenv =
- OS_TEST_PATH = ./glanceclient/tests/functional
+ OS_TEST_PATH = ./glanceclient/tests/functional/v2
+ OS_TESTENV_NAME = {envname}
+whitelist_externals =
+ bash
+commands =
+ bash tools/fix_ca_bundle.sh
+ python setup.py testr --testr-args='{posargs}'
+
+[testenv:functional-v1]
+# TODO(rosmaita): remove this testenv at the beginning
+# of the 'S' cycle
+setenv =
+ OS_TEST_PATH = ./glanceclient/tests/functional/v1
+ OS_TESTENV_NAME = {envname}
whitelist_externals =
bash
commands =