Skip to content

Instantly share code, notes, and snippets.

@linki
Created July 21, 2015 08:02
Show Gist options
  • Save linki/83885a88db29e1bf4193 to your computer and use it in GitHub Desktop.
Save linki/83885a88db29e1bf4193 to your computer and use it in GitHub Desktop.
set -e
function check_status
{
docker run -t --rm odise/busybox-curl test \
$(curl -s -o /dev/null -I -w "%{http_code}" $2) = "$1"
}
check_status 302 https://linki.openproject.com/
check_status 302 https://linki.openproject.com/login
check_status 302 https://linki.openproject.com/auth/concierge
check_status 302 https://linki.openproject.com/logout
check_status 302 https://login.openproject.com/auth/end_session
check_status 200 https://login.openproject.com/bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment