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:
parent
c37061ca5e
commit
1984b3ea54
0
functionaltests/post_test_hook.sh
Normal file → Executable file
0
functionaltests/post_test_hook.sh
Normal file → Executable file
0
functionaltests/pre_test_hook.sh
Normal file → Executable file
0
functionaltests/pre_test_hook.sh
Normal file → Executable file
2
functionaltests/run_tests.sh
Normal file → Executable file
2
functionaltests/run_tests.sh
Normal file → Executable 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
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user