Created
November 17, 2013 22:57
-
-
Save dave-shawley/7519424 to your computer and use it in GitHub Desktop.
BATS integration tests for nginx proxy
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
@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