updates for testing
This commit is contained in:
16
OpenJibo/scripts/bootstrap/test-openjibo-routing.sh
Normal file
16
OpenJibo/scripts/bootstrap/test-openjibo-routing.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
HOSTS=(
|
||||
"https://api.jibo.com/health"
|
||||
"https://api-socket.jibo.com/"
|
||||
"https://neo-hub.jibo.com/v1/proactive"
|
||||
)
|
||||
|
||||
for url in "${HOSTS[@]}"; do
|
||||
if status_code="$(curl --silent --output /dev/null --write-out "%{http_code}" --insecure "${url}")"; then
|
||||
echo "${url} status=${status_code} success=true"
|
||||
else
|
||||
echo "${url} status=000 success=false"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user