Skip to content

Instantly share code, notes, and snippets.

@fowlie
Last active December 20, 2017 11:20
Show Gist options
  • Save fowlie/10709648 to your computer and use it in GitHub Desktop.
Save fowlie/10709648 to your computer and use it in GitHub Desktop.
Shell Smoketest
#!/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