blob: 4264b1a59da4a75f7f330b8490e8971eb55249c6 [file] [log] [blame]
Yuli Shlosberg82330072017-09-27 22:42:51 +03001#!/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 ""
Yuli Shlosberga2d8b3b2017-12-25 16:35:04 +020016http_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 ]]
Yuli Shlosberg82330072017-09-27 22:42:51 +030018then
Yuli Shlosberga2d8b3b2017-12-25 16:35:04 +020019 echo "Error [${http_code}] while user existance check"
20 return ${http_code}
Yuli Shlosberg82330072017-09-27 22:42:51 +030021fi
22echo "check user existance: OK"
23