[dockerfile] test new config stuff
This commit is contained in:
@@ -1,2 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e; output="$(curl -s -S "$1")"; echo "$output"; test "$output" == "Hello World!"
|
||||
set -e;
|
||||
|
||||
test_url () {
|
||||
path="$1"
|
||||
expected_output="$2"
|
||||
url="$base_url$path"
|
||||
output="$(curl -s -S "$url:3000")"
|
||||
echo "$output"
|
||||
test "$output" == "$expected_output"
|
||||
}
|
||||
|
||||
base_url="$1"
|
||||
test_url / "Hello World!"
|
||||
test_url /env/FROM_APP_JSON "'foo
|
||||
bar'"
|
||||
test_url /env/HELLO "Hello
|
||||
'world' "
|
||||
Reference in New Issue
Block a user