mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
17 lines
289 B
Bash
Executable File
17 lines
289 B
Bash
Executable File
#!/usr/bin/env bash
|
|
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' "
|