Merge "Use functional_test.conf for devstack gate"

This commit is contained in:
Jenkins 2015-03-13 17:13:55 +00:00 committed by Gerrit Code Review
commit 456ec16fd2
3 changed files with 16 additions and 4 deletions

View File

@ -5,7 +5,7 @@
#Replace values that represent barbican server and user information
url=http://localhost:9311
username=barbican
password=orange
password=secretservice
project_name=service
project_id=service
#max_payload_size=10000

View File

@ -17,9 +17,19 @@ import os
from tempest import config
CONF = config.CONF
def _get_conf_file_path():
functional_dir = os.path.split(os.path.abspath(__file__))[0]
base_dir = os.path.split(functional_dir)[0]
return os.path.join(base_dir, 'etc', 'functional_tests.conf')
# Use local tempest conf if one is available.
# This usually means we're running tests outside of devstack
if os.path.exists('./etc/functional_tests.conf'):
CONF.set_config_path('./etc/functional_tests.conf')
conf_file = _get_conf_file_path()
if os.path.exists(conf_file):
CONF.set_config_path(conf_file)

View File

@ -21,4 +21,6 @@ pip install -e $TEMPEST_DIR
# Install test-requirements
pip install -r /opt/stack/new/python-barbicanclient/test-requirements.txt
echo "Running functional tests on $(python -V)"
nosetests -v .