Fix mistral tests

- corrected the path to tests
- removed check_api.sh script because it's not needed anymore
- made scripts executable

Change-Id: I2c6364e8ad4355b8b8565904d58773e8412bdf6d
This commit is contained in:
Sergey Kolekonov 2014-05-06 12:20:39 +04:00
parent c37061ca5e
commit 1984b3ea54
4 changed files with 1 additions and 10 deletions

0
functionaltests/post_test_hook.sh Normal file → Executable file
View File

0
functionaltests/pre_test_hook.sh Normal file → Executable file
View File

2
functionaltests/run_tests.sh Normal file → Executable file
View File

@ -28,4 +28,4 @@ TEMPEST_DIR=${TEMPEST_DIR:-/opt/stack/new/tempest}
# Add tempest source tree to PYTHONPATH
export PYTHONPATH=$PYTHONPATH:$TEMPEST_DIR
nosetests -sv .
nosetests -sv api/v1

View File

@ -1,9 +0,0 @@
#!/bin/bash
# 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
echo "Mistral API failed to respond within ${API_RESPONDING_TIMEOUT} seconds"
exit 1
fi