blob: 1db5282446276e743552e4fc56bbe8ab51ac9f26 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001#!/bin/bash
2
3curl localhost:9200/_cluster/health?pretty=true
4
5echo "BE health-Check:"
6curl http://localhost:8080/sdc2/rest/healthCheck
7
8echo ""
9echo ""
10echo "FE health-Check:"
11curl http://localhost:8181/sdc1/rest/healthCheck
12
13
14echo ""
15echo ""
16res=`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`
Alexis de Talhouƫt7743ee82017-03-09 16:40:39 -050017if [[ ! ${res} -eq 0 ]]
Michael Lando451a3402017-02-19 10:28:42 +020018then
19 echo "Error [${res}] while user existance check"
20 exit ${res}
21fi
22echo "check user existance: OK"
ml636r0649e652017-02-20 21:10:54 +020023