diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-07 15:35:08 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-07 15:35:08 +0200 |
commit | 905c15c711a13453da634ba7395db4a7b9b16bb1 (patch) | |
tree | 1a02fd692042767a6c775354dc2124550611ca7f /buildbot/checks.sh | |
parent | af890dbd75308dc47ec9cfac61af7ca6783ce949 (diff) | |
download | deployment-905c15c711a13453da634ba7395db4a7b9b16bb1.tar.gz deployment-905c15c711a13453da634ba7395db4a7b9b16bb1.tar.bz2 deployment-905c15c711a13453da634ba7395db4a7b9b16bb1.zip |
check twister resatrted correctly
Diffstat (limited to 'buildbot/checks.sh')
-rwxr-xr-x | buildbot/checks.sh | 17 |
1 files changed, 17 insertions, 0 deletions
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" |