Move gate tests under mistral/tests

- Move all gate tests from functionaltests folder to the mistral/tests/functional
- Edit run directory for gate tests in the functionaltests/run_tests.sh
- Leave 'resources' folder in the 'mistral/tests' to use examples from it in the tempest tests

Change-Id: I4d6d6a653aab5af00c5cae7c21495f4a86ebfe42
This commit is contained in:
Anastasia Kuznetsova 2014-08-08 14:40:02 +04:00 committed by Nikolay Mahotkin
parent 4e71b1a69f
commit 79a78b96c4
10 changed files with 4 additions and 14 deletions

View File

@ -3,7 +3,7 @@ test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./mistral/tests $LISTOPT $IDOPTION
${PYTHON:-python} -m subunit.run discover -t ./ ./mistral/tests/unit $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -27,8 +27,6 @@ if [[ "$ZUUL_PROJECT" == "stackforge/mistral" ]]; then
echo "Run mistral API tests"
sudo bash ./functionaltests/run_tests.sh
RETVAL=$?
# Copy tempest log files to be published among other logs upon job completion
sudo cp /opt/stack/new/mistral/functionaltests/tempest.log /opt/stack/logs
fi
#Run client tests for both repositories: mistral and python-mistralclient
@ -39,7 +37,4 @@ if [[ RETVAL -eq 0 ]]; then
RETVAL=$?
fi
# Copy tempest log files to be published among other logs upon job completion
sudo cp /opt/stack/new/python-mistralclient/functionaltests/tempest.log /opt/stack/logs/tempest_client.log
exit $RETVAL

View File

@ -31,9 +31,6 @@ MISTRALCLIENT_DIR=/opt/stack/new/python-mistralclient
# Define PYTHONPATH
export PYTHONPATH=$PYTHONPATH:$TEMPEST_DIR
export PYTHONPATH=$PYTHONPATH:$MISTRAL_DIR
export PYTHONPATH=$PYTHONPATH:$MISTRALCLIENT_DIR
echo $PYTHONPATH
pwd
nosetests -sv functionaltests
nosetests -sv mistral/tests/functional/

View File

@ -1,5 +1,3 @@
# Copyright 2013 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@ -20,7 +18,7 @@ import uuid
from tempest import exceptions
from tempest import test
from functionaltests.api import base
from mistral.tests.functional.api import base
class SanityTests(base.TestCase):

View File

@ -110,7 +110,7 @@ function run_tests {
if [ "$testropts" = "" ] && [ "$testrargs" = "" ]; then
# Default to running all tests if specific test is not
# provided.
testrargs="discover ./mistral/tests"
testrargs="discover ./mistral/tests/unit"
fi
${wrapper} python -m testtools.run $testropts $testrargs