Last active
December 20, 2017 11:20
-
-
Save fowlie/10709648 to your computer and use it in GitHub Desktop.
Shell Smoketest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for module in "accounting-module" "customer-module" "product-module" "policy-module" "test-module" | |
do | |
url="http://$env/$module/webservice" | |
status=$(curl $url --silent --output /dev/null --write-out "%{http_code}") | |
echo "$url returned HTTP $status" | |
if [ $status -ne "200" ]; then | |
exit 1; | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment