From f518cfe252721553cca1d31c0980dc7aa4111a64 Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Tue, 31 Mar 2015 07:25:28 +0000 Subject: [PATCH] Add separate requirements.txt to integration tests and use it during tox run. This should speed up the tox venv creation somewhat, as the new requirements is shorter, thus less packages are installed or C extensions compiled. Also this is the first step to ease packaging of the integration tests as a separate tool. Change-Id: I914eb675e7f025e03a22719d5dff8ed741fbd37d --- .testr.conf | 5 +++-- heat_integrationtests/requirements.txt | 18 ++++++++++++++++++ tox.ini | 4 ++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 heat_integrationtests/requirements.txt diff --git a/.testr.conf b/.testr.conf index 1bdd94e50e..044f5a32a0 100644 --- a/.testr.conf +++ b/.testr.conf @@ -1,7 +1,8 @@ [DEFAULT] test_command= PYTHON=$(echo ${PYTHON:-python} | sed 's/--source heat//g') - ${PYTHON} -m subunit.run discover -s . $LISTOPT $IDOPTION - for plugin in contrib/*; do ${PYTHON} -m subunit.run discover -s $plugin $LISTOPT $IDOPTION; done + START_AT=${TESTR_START_DIR:-.} + ${PYTHON} -m subunit.run discover -s $START_AT -t . $LISTOPT $IDOPTION + if [ "$START_AT" = "." ]; then for plugin in $START_AT/contrib/*; do ${PYTHON} -m subunit.run discover -s $plugin $LISTOPT $IDOPTION; done; fi test_id_option=--load-list $IDFILE test_list_option=--list diff --git a/heat_integrationtests/requirements.txt b/heat_integrationtests/requirements.txt new file mode 100644 index 0000000000..2f08f9a190 --- /dev/null +++ b/heat_integrationtests/requirements.txt @@ -0,0 +1,18 @@ +kombu>=2.5.0 +oslo.log>=1.0.0,<1.1.0 # Apache-2.0 +oslo.messaging>=1.8.0,<1.9.0 # Apache-2.0 +oslo.config>=1.9.3,<1.10.0 # Apache-2.0 +oslo.utils>=1.4.0,<1.5.0 # Apache-2.0 +paramiko>=1.13.0 +python-cinderclient>=1.1.0 +python-keystoneclient>=1.1.0 +python-heatclient>=0.3.0 +python-neutronclient>=2.3.11,<3 +python-novaclient>=2.22.0 +python-swiftclient>=2.2.0 +PyYAML>=3.1.0 +requests>=2.2.0,!=2.4.0 +six>=1.9.0 +testrepository>=0.0.18 +testscenarios>=0.4 +testtools>=0.9.36,!=1.2.0 diff --git a/tox.ini b/tox.ini index 54fcc655aa..559741d08c 100644 --- a/tox.ini +++ b/tox.ini @@ -26,6 +26,10 @@ commands = bash tools/pretty_tox.sh '{posargs}' [testenv:integration] +setenv = VIRTUAL_ENV={envdir} + TESTR_START_DIR=heat_integrationtests +usedevelop = False +deps = -r{toxinidir}/heat_integrationtests/requirements.txt commands = bash tools/pretty_tox.sh '--concurrency=1 ^heat_integrationtests.*{posargs}'