4NK_node/tests/connectivity/check_http_endpoints.sh

42 lines
896 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
endpoints=(
"http://127.0.0.1:8000" # blindbit
"http://127.0.0.1:8081" # sdk_storage
"http://127.0.0.1:8090" # relay1
"http://127.0.0.1:8092" # relay2
"http://127.0.0.1:8094" # relay3
"http://127.0.0.1:9090" # sdk_signer
"http://127.0.0.1:8080" # ihm_client
)
fail=0
for url in "${endpoints[@]}"; do
if wget --quiet --tries=1 --timeout=5 --spider "$url"; then
echo "OK $url"
else
echo "NOK $url"
fail=1
fi
done
exit $fail
set -euo pipefail
endpoints=(
http://127.0.0.1:8000 # blindbit
http://127.0.0.1:8081 # sdk_storage
http://127.0.0.1:8090 # relay1
http://127.0.0.1:8092 # relay2
http://127.0.0.1:8094 # relay3
http://127.0.0.1:9090 # sdk_signer
http://127.0.0.1:8080 # ihm_client
)
fail=0
for url in ; do
if wget --quiet --tries=1 --timeout=5 --spider ; then
echo OK