Add functional tests launcher for py3 env

It would be nice to check not only unit test on py3 env, but functional
tests too.

Also, this patch fixes usage of xrange in functional tests.

Change-Id: I15ef204022583a40a02b3f2a48771347ddc95f3e
This commit is contained in:
Andrey Kurilin 2016-01-13 14:57:24 +02:00
parent 54b625aae8
commit 426f6afb3c
3 changed files with 9 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class TestServersAPI(base.ClientTestBase):
server_name, self.image, self.flavor)
self.addCleanup(initial_server.delete)
for x in xrange(60):
for x in range(60):
server = self.client.servers.get(initial_server)
if server.status == "ACTIVE":
break

View File

@ -43,7 +43,7 @@ cd $NOVACLIENT_DIR
echo "Running novaclient functional test suite"
set +e
# Preserve env for OS_ credentials
sudo -E -H -u jenkins tox -efunctional
sudo -E -H -u jenkins tox -e ${TOX_ENV:-functional}
EXIT_CODE=$?
set -e

View File

@ -35,6 +35,13 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
[testenv:functional]
basepython = python2.7
setenv =
OS_TEST_PATH = ./novaclient/tests/functional
commands = python setup.py testr --testr-args='--concurrency=1 {posargs}'
[testenv:functional-py34]
basepython = python3.4
setenv =
OS_TEST_PATH = ./novaclient/tests/functional
commands = python setup.py testr --testr-args='--concurrency=1 {posargs}'