blob: 4264b1a59da4a75f7f330b8490e8971eb55249c6 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001#!/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 ""
16http_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;)
17if [[ ${http_code} != 200 ]]
18then
19 echo "Error [${http_code}] while user existance check"
20 return ${http_code}
21fi
22echo "check user existance: OK"
23