diff options
author | Yuli Shlosberg <ys9693@att.com> | 2017-12-25 16:35:04 +0200 |
---|---|---|
committer | Yuli Shlosberg <ys9693@att.com> | 2018-01-17 17:56:08 +0200 |
commit | a2d8b3bf42f2ea4f82790e0c86d2ce744657310c (patch) | |
tree | ec62b95aee0afd2bf2a4b2aaad0a41c539b87345 /test/csit/scripts/sdc/docker_health.sh | |
parent | f0285a52fb3a13fdb82905428be805c3c0e160a0 (diff) |
Add branch support for sdc csit
Change-Id: I45e28013113123abd28e5d42ded1a2c7a64b0f8b
Issue-ID: SDC-761
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'test/csit/scripts/sdc/docker_health.sh')
-rw-r--r-- | test/csit/scripts/sdc/docker_health.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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" |