From a8dbae9031a33f9a7f12e201264b820b800996dc Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 7 May 2020 11:35:10 +0200 Subject: [PATCH] start_test.sh: Properly test the server's response --- testing/start_test.sh | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/testing/start_test.sh b/testing/start_test.sh index f1e5a18..a248397 100755 --- a/testing/start_test.sh +++ b/testing/start_test.sh @@ -6,12 +6,31 @@ if ! $SCRIPT_HOME/prepare_test.sh; then exit 1 fi -RSTATUS=$(curl -s -w "%{http_code}" http://localhost/icingaweb2/authentication/login -o /dev/null) -if [ "200" != "$RSTATUS" ]; then - echo "Http exit code was not ok!" - exit 1 +sleep 10 + +output=`mktemp` + +if curl -v http://127.0.0.1/icingaweb2/authentication/login -o "$output"; then + if grep -q '