From 905c15c711a13453da634ba7395db4a7b9b16bb1 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 7 Jun 2019 15:35:08 +0200 Subject: check twister resatrted correctly --- buildbot/checks.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'buildbot') diff --git a/buildbot/checks.sh b/buildbot/checks.sh index 0db64a7..7949da5 100755 --- 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" -- cgit v1.2.3