Yuli Shlosberg | 8233007 | 2017-09-27 22:42:51 +0300 | [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 "" |
Yuli Shlosberg | a2d8b3b | 2017-12-25 16:35:04 +0200 | [diff] [blame] | 16 | 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;) |
| 17 | if [[ ${http_code} != 200 ]] |
Yuli Shlosberg | 8233007 | 2017-09-27 22:42:51 +0300 | [diff] [blame] | 18 | then |
Yuli Shlosberg | a2d8b3b | 2017-12-25 16:35:04 +0200 | [diff] [blame] | 19 | echo "Error [${http_code}] while user existance check" |
| 20 | return ${http_code} |
Yuli Shlosberg | 8233007 | 2017-09-27 22:42:51 +0300 | [diff] [blame] | 21 | fi |
| 22 | echo "check user existance: OK" |
| 23 | |