[config] test python buildpack too

This commit is contained in:
Alex Quick
2017-04-30 22:29:58 -04:00
parent c20fbfccf6
commit 12c9536a7b
3 changed files with 35 additions and 2 deletions

View File

@@ -1,2 +1,16 @@
#!/usr/bin/env bash
set -e; output="$(curl -s -S "$1")"; echo "$output"; test "$output" == "python/flask"
set -e;
base_url=$1
test_url () {
path="$1"
expected_output="$2"
url="${base_url}${path}"
output="$(curl -s -S "$url")"
echo "$url -> $output"
test "$output" == "$expected_output"
}
base_url="$1"
test_url / "python/flask"
test_url /HELLO "Hello
'world' "