From a2d8b3bf42f2ea4f82790e0c86d2ce744657310c Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Mon, 25 Dec 2017 16:35:04 +0200 Subject: Add branch support for sdc csit Change-Id: I45e28013113123abd28e5d42ded1a2c7a64b0f8b Issue-ID: SDC-761 Signed-off-by: Yuli Shlosberg --- test/csit/scripts/sdc/docker_health.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/csit/scripts/sdc/docker_health.sh') diff --git a/test/csit/scripts/sdc/docker_health.sh b/test/csit/scripts/sdc/docker_health.sh index 832b25a23..4264b1a59 100644 --- a/test/csit/scripts/sdc/docker_health.sh +++ b/test/csit/scripts/sdc/docker_health.sh @@ -13,11 +13,11 @@ curl http://localhost:8181/sdc1/rest/healthCheck echo "" echo "" -res=`curl -s -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "USER_ID: jh0003" "http://localhost:8080/sdc2/rest/v1/user/demo" | wc -l` -if [[ ${res} != 0 ]] +http_code=$(curl -o out.html -w '%{http_code}' -H "Accept: application/json" -H "Content-Type: application/json" -H "USER_ID: jh0003" http://localhost:8080/sdc2/rest/v1/user/demo;) +if [[ ${http_code} != 200 ]] then - echo "Error [${res}] while user existance check" - exit ${res} + echo "Error [${http_code}] while user existance check" + return ${http_code} fi echo "check user existance: OK" -- cgit 1.2.3-korg