diff --git a/test.sh b/test.sh index f07d562..a6fa972 100755 --- a/test.sh +++ b/test.sh @@ -48,6 +48,14 @@ BASE_URL="http://${HOST}:${PORT}" BASE_TAG="autotest" + +# test if server is running +if ! curl -s "${BASE_URL}/status" | jq -r '.result' | grep -q 'success'; then + die "server is not running" +fi + +echo "Simple Object Storage server is running at ${BASE_URL}" + # test every action in the README.md file, leaving the system in the same state it was found # and print the output of each action