Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | curl localhost:9200/_cluster/health?pretty=true |
| 4 | |
| 5 | echo "BE health-Check:" |
| 6 | curl http://localhost:8080/sdc2/rest/healthCheck |
| 7 | |
| 8 | echo "" |
| 9 | echo "" |
| 10 | echo "FE health-Check:" |
| 11 | curl http://localhost:8181/sdc1/rest/healthCheck |
| 12 | |
| 13 | |
| 14 | echo "" |
| 15 | echo "" |
| 16 | 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` |
Alexis de Talhouƫt | 7743ee8 | 2017-03-09 16:40:39 -0500 | [diff] [blame] | 17 | if [[ ! ${res} -eq 0 ]] |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 18 | then |
| 19 | echo "Error [${res}] while user existance check" |
| 20 | exit ${res} |
| 21 | fi |
| 22 | echo "check user existance: OK" |
ml636r | 0649e65 | 2017-02-20 21:10:54 +0200 | [diff] [blame] | 23 | |