From 37db886a0142697286ff86b568cc871854e56098 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 25 May 2025 12:36:29 +1200 Subject: [PATCH] Bug fixing --- test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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