commit 905c15c711a13453da634ba7395db4a7b9b16bb1 parent af890dbd75308dc47ec9cfac61af7ca6783ce949 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Fri, 7 Jun 2019 15:35:08 +0200 check twister resatrted correctly Diffstat:
| M | buildbot/checks.sh | | | 17 | +++++++++++++++++ |
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/buildbot/checks.sh b/buildbot/checks.sh @@ -122,4 +122,21 @@ if ! test 200 = $http_status_code; then exit 1 fi + +if test "test" = ${DEPLOYMENT}; then + URL="https://twister-backend.wild.gv.taler.net" + http_status_code=$(curl \ + -H "X-Taler-Deployment-Color: ${NONACTIVE_COLOR}" \ + -s $URL -o /dev/null \ + -w "%{http_code}") + if ! test 200 = $http_status_code; then + printf "%s failed\n" $URL + printf "$error_fmt" \ + "Twister did not restart correctly" + $http_status_code $? "$(error_stringify $?)" + exit 1 + fi +fi + + printf "All services correctly restarted!\n"