Gate-supporting files for functional tests

To support running functional tests from the gate:
- directory functionaltests for hook scripts (and maybe test packages)
- tox.ini functional environment placeholde
- devstack post_test_hook, pre_test_hook scripts which are run
  by the gate job

Change-Id: Iead98b60149807e26a4888c3497876483ca803b7
Partial-Blueprint: functional-tests
This commit is contained in:
Steve Baker 2014-08-25 10:37:20 +12:00
parent 6e3488be15
commit 79241df752
3 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,18 @@
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# This script is executed inside post_test_hook function in devstack gate.
cd /opt/stack/new/heat
sudo tox -efunctional

View File

@ -0,0 +1,16 @@
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# This script is executed inside pre_test_hook function in devstack gate.

View File

@ -13,13 +13,17 @@ install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
python setup.py testr --slowest --testr-args='^(?!functionaltests) {posargs}'
whitelist_externals = bash
[testenv:functional]
commands =
python -c "print('TODO: functional tests')"
[testenv:pep8]
commands =
flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib
flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib functionaltests
{toxinidir}/tools/config/check_uptodate.sh
{toxinidir}/tools/requirements_style_check.sh requirements.txt test-requirements.txt
# Check that .po and .pot files are valid: