From 8a105d2637dccf05209017a43c9de3a2221f7295 Mon Sep 17 00:00:00 2001 From: Anastasia Kuznetsova Date: Tue, 10 Feb 2015 18:37:44 +0400 Subject: [PATCH] Fix tempest gate, add tempest import Change-Id: Ib1010bf1a0af3eb4419e213a264ad4b20ce226c1 --- functionaltests/run_tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functionaltests/run_tests.sh b/functionaltests/run_tests.sh index 7a7a214f..751b47ea 100644 --- a/functionaltests/run_tests.sh +++ b/functionaltests/run_tests.sh @@ -15,7 +15,7 @@ # How many seconds to wait for the API to be responding before giving up API_RESPONDING_TIMEOUT=20 -if ! timeout ${API_RESPONDING_TIMEOUT} sh -c "while ! curl -s http://127.0.0.1:8989/v1/ 2>/dev/null | grep -q 'Authentication required' ; do sleep 1; done"; then +if ! timeout ${API_RESPONDING_TIMEOUT} sh -c "while ! curl -s http://127.0.0.1:8989/v2/ 2>/dev/null | grep -q 'Authentication required' ; do sleep 1; done"; then echo "Mistral API failed to respond within ${API_RESPONDING_TIMEOUT} seconds" exit 1 fi @@ -28,4 +28,7 @@ TEMPEST_DIR=${TEMPEST_DIR:-/opt/stack/new/tempest} # Add tempest source tree to PYTHONPATH export PYTHONPATH=$PYTHONPATH:$TEMPEST_DIR +#installing requirements for tempest +pip install -r $TEMPEST_DIR/requirements.txt + nosetests -sv mistralclient/tests/functional/