[DRE-commits] [schleuder] 01/06: debian/tests/check-status: Rework check against installed API daemon

Georg Faerber georg-alioth-guest at moszumanska.debian.org
Thu Jan 26 14:40:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

georg-alioth-guest pushed a commit to branch master
in repository schleuder.

commit e231553051d5ab42b3db7a31cf6830089357c95c
Author: Georg Faerber <georg at riseup.net>
Date:   Thu Jan 26 12:34:04 2017 +0100

    debian/tests/check-status: Rework check against installed API daemon
---
 debian/tests/check-status | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/debian/tests/check-status b/debian/tests/check-status
index 9d4151c..236e97d 100755
--- a/debian/tests/check-status
+++ b/debian/tests/check-status
@@ -2,10 +2,4 @@
 
 set -e
 
-GET_STATUS=$(curl -s http://127.0.0.1:4443/status.json)
-EXPECTED_STATUS='{"status":"ok"}'
-
-if ! grep "${EXPECTED_STATUS}" <<< "${GET_STATUS}" >/dev/null; then
-	echo "Got status: ${GET_STATUS}"
-        exit 1
-fi
+curl -s -k -I https://127.0.0.1:4443/status.json | grep -q 'WWW-Authenticate: Basic realm="Schleuder API Daemon"' || exit 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/schleuder.git



More information about the Pkg-ruby-extras-commits mailing list