Commit 9224f8d7 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

wait some time before testing the docker-compose, add comments

parent 3946c706
......@@ -2,18 +2,28 @@
docker-compose -f docker-compose.yaml -f docker-compose.test.yaml up -d --build
echo "Waiting some time for interface to be up"
sleep 5
echo "Testing /"
curl -I http://0.0.0.0:3000/ \
1> log/01-index.log \
2> log/01-index.err
if [ "$(cat log/01-index.log | grep "200 OK" | wc -l)" == "0" ]; then exit 01; fi
echo "Testing /phenotypes"
curl -I http://0.0.0.0:3000/phenotypes \
1> log/02-phenotypes.log \
2> log/02-phenotypes.err
if [ "$(cat log/02-*.log | grep "200 OK" | wc -l)" == "0" ]; then exit 02; fi
echo "Testing project creation"
curl --location --request POST 'http://0.0.0.0:8080/api/projects' \
--header 'Accept: text/html' \
--header 'Content-Type: application/json' \
......@@ -27,12 +37,16 @@ if [ ! -d "projects/project_$PROJECT_ID" ]; then
exit 03
fi
echo "Testing opening project in webui"
curl -I http://0.0.0.0:3000/projects/$PROJECT_ID \
1> log/04-project.log \
2> log/04-project.err
if [ "$(cat log/04-*.log | grep "200 OK" | wc -l)" == "0" ]; then exit 04; fi
echo "Testing manhattan plot"
curl http://0.0.0.0:8080/api/projects/$PROJECT_ID/globalmanhattan \
-o log/05-globalmanhattan.png \
1> log/05-globalmanhattan.log \
......@@ -40,6 +54,8 @@ curl http://0.0.0.0:8080/api/projects/$PROJECT_ID/globalmanhattan \
if [ ! -s log/05-*.png ]; then exit 05; fi
echo "Testing quadrant plot"
curl http://0.0.0.0:8080/api/projects/$PROJECT_ID/quadrant \
-o log/06-quadrant.png \
1> log/06-quadrant.log \
......@@ -47,6 +63,8 @@ curl http://0.0.0.0:8080/api/projects/$PROJECT_ID/quadrant \
if [ ! -s log/06-*.png ]; then exit 06; fi
echo "Testing quadrant plot"
curl http://0.0.0.0:8080/api/projects/$PROJECT_ID/genome_full \
-o log/07-genome_full.csv \
1> log/07-genome_full.log \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment