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:
parent
4e71b1a69f
commit
79a78b96c4
@ -3,7 +3,7 @@ test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
|||||||
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
||||||
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
|
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
|
||||||
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
|
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_id_option=--load-list $IDFILE
|
||||||
test_list_option=--list
|
test_list_option=--list
|
||||||
|
@ -27,8 +27,6 @@ if [[ "$ZUUL_PROJECT" == "stackforge/mistral" ]]; then
|
|||||||
echo "Run mistral API tests"
|
echo "Run mistral API tests"
|
||||||
sudo bash ./functionaltests/run_tests.sh
|
sudo bash ./functionaltests/run_tests.sh
|
||||||
RETVAL=$?
|
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
|
fi
|
||||||
|
|
||||||
#Run client tests for both repositories: mistral and python-mistralclient
|
#Run client tests for both repositories: mistral and python-mistralclient
|
||||||
@ -39,7 +37,4 @@ if [[ RETVAL -eq 0 ]]; then
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
fi
|
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
|
exit $RETVAL
|
||||||
|
@ -31,9 +31,6 @@ MISTRALCLIENT_DIR=/opt/stack/new/python-mistralclient
|
|||||||
|
|
||||||
# Define PYTHONPATH
|
# Define PYTHONPATH
|
||||||
export PYTHONPATH=$PYTHONPATH:$TEMPEST_DIR
|
export PYTHONPATH=$PYTHONPATH:$TEMPEST_DIR
|
||||||
export PYTHONPATH=$PYTHONPATH:$MISTRAL_DIR
|
|
||||||
export PYTHONPATH=$PYTHONPATH:$MISTRALCLIENT_DIR
|
|
||||||
|
|
||||||
echo $PYTHONPATH
|
|
||||||
pwd
|
pwd
|
||||||
nosetests -sv functionaltests
|
nosetests -sv mistral/tests/functional/
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
# Copyright 2013 Mirantis, Inc.
|
# Copyright 2013 Mirantis, Inc.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
# 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 exceptions
|
||||||
from tempest import test
|
from tempest import test
|
||||||
|
|
||||||
from functionaltests.api import base
|
from mistral.tests.functional.api import base
|
||||||
|
|
||||||
|
|
||||||
class SanityTests(base.TestCase):
|
class SanityTests(base.TestCase):
|
@ -110,7 +110,7 @@ function run_tests {
|
|||||||
if [ "$testropts" = "" ] && [ "$testrargs" = "" ]; then
|
if [ "$testropts" = "" ] && [ "$testrargs" = "" ]; then
|
||||||
# Default to running all tests if specific test is not
|
# Default to running all tests if specific test is not
|
||||||
# provided.
|
# provided.
|
||||||
testrargs="discover ./mistral/tests"
|
testrargs="discover ./mistral/tests/unit"
|
||||||
fi
|
fi
|
||||||
${wrapper} python -m testtools.run $testropts $testrargs
|
${wrapper} python -m testtools.run $testropts $testrargs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user