From 08cf7d99d36517a27324d8565eb8985baacd6ebf Mon Sep 17 00:00:00 2001 From: Alexander Chadin Date: Mon, 23 Jan 2017 18:58:39 +0300 Subject: [PATCH] Add functional env to tox This patch set adds functional environment to tox to be able to create post_hook file for functional gate. Change-Id: I8e918fe47f6008b9570e39c2d0e9159d0d223362 --- test-requirements.txt | 1 + tox.ini | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/test-requirements.txt b/test-requirements.txt index 24b5276..3a00da5 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -13,6 +13,7 @@ sphinx!=1.3b1,<1.4,>=1.2.1 # BSD testrepository>=0.0.18 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD testtools>=1.4.0 # MIT +tempest>=12.1.0 # Apache-2.0 # Needed for pypi packaging wheel # MIT diff --git a/tox.ini b/tox.ini index bf0abba..a91d202 100644 --- a/tox.ini +++ b/tox.ini @@ -31,6 +31,21 @@ commands = python setup.py build_sphinx [testenv:debug] commands = oslo_debug_helper {posargs} +[testenv:functional] +basepython = python2.7 +passenv = + OS_PROJECT_DOMAIN_NAME + OS_USER_DOMAIN_NAME + OS_PROJECT_NAME + OS_USERNAME + OS_PASSWORD + OS_AUTH_URL + OS_IDENTITY_API_VERSION + OS_IMAGE_API_VERSION +setenv = + OS_TEST_PATH = ./watcherclient/tests/functional +commands = python setup.py testr --slowest --testr-args='--concurrency=1 {posargs}' + [flake8] # E123, E125 skipped as they are invalid PEP-8. show-source = True