File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e # fail fast
3
3
set -x
4
+
4
5
BASE_URL=https://taskana.azurewebsites.net/taskana
6
+ TIMEOUT=30 # seconds
5
7
6
- test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null " $BASE_URL /docs/rest/rest-api.html" ) "
7
- test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null " $BASE_URL /docs/rest/simplehistory-rest-api.html" ) "
8
- test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null " $BASE_URL /docs/rest/routing-rest-api.html" ) "
8
+ test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT " $BASE_URL /docs/rest/rest-api.html" ) "
9
+ test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT " $BASE_URL /docs/rest/simplehistory-rest-api.html" ) "
10
+ test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT " $BASE_URL /docs/rest/routing-rest-api.html" ) "
9
11
for module in taskana-core taskana-spring; do
10
- test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null " $BASE_URL /docs/java/$module /index.html" ) "
12
+ test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT " $BASE_URL /docs/java/$module /index.html" ) "
11
13
done
12
14
for module in taskana-cdi; do
13
- test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null " $BASE_URL /docs/java/$module /pro/taskana/common/internal/package-summary.html" ) "
15
+ test 200 -eq " $( curl -sw " %{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT " $BASE_URL /docs/java/$module /pro/taskana/common/internal/package-summary.html" ) "
14
16
done
You can’t perform that action at this time.
0 commit comments