Skip to content

Instantly share code, notes, and snippets.

@dave-shawley
Created November 17, 2013 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dave-shawley/7519424 to your computer and use it in GitHub Desktop.
Save dave-shawley/7519424 to your computer and use it in GitHub Desktop.
BATS integration tests for nginx proxy
@test "nginx proxies to devpi-server" {
HOST=$(hostname --fqdn)
TMPFILE=$BATS_TMPDIR/root-pypi
wget -q -O$TMPFILE http://$HOST/root/pypi
grep 'type.*"indexconfig"' $TMPFILE
grep 'type.*"mirror"' $TMPFILE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment