Skip to content

Commit a03ffd0

Browse files
committed
Closes #2581: Deploy Demo App to Azure 2
1 parent dd2e421 commit a03ffd0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ci/verify_docs_alive.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/bin/bash
22
set -e # fail fast
33
set -x
4+
45
BASE_URL=https://taskana.azurewebsites.net/taskana
6+
TIMEOUT=30 # seconds
57

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")"
911
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")"
1113
done
1214
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")"
1416
done

0 commit comments

Comments
 (0)