Added `test.sh` to perform tests, including requirmentes installation

This commit is contained in:
Mauro Mugnaini 2023-03-14 13:24:09 +01:00
parent aead44cefa
commit 837417273d
1 changed files with 2 additions and 13 deletions

15
test.sh
View File

@ -1,14 +1,3 @@
#!/bin/bash
export BASE="http://conductorserver:8080"
echo 'Waiting for Conductor ...'
while [[ "$(curl -s -o /dev/null -L -w ''%{http_code}'' $BASE/health)" != 200 ]]; do
echo 'still waiting ...'
sleep 5
done
echo 'Starting default workers...'
python3 PyExec.py Http Shell Eval Mail
pip install -r tests/requirements-test.txt
python -m pytest