mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 20:19:52 +01:00
16 lines
261 B
Bash
Executable File
16 lines
261 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e;
|
|
|
|
test_url () {
|
|
path="$1"
|
|
expected_output="$2"
|
|
url="$base_url$path"
|
|
output="$(curl -s -S "$url")"
|
|
echo "$output"
|
|
test "$output" == "$expected_output"
|
|
}
|
|
|
|
base_url="$1"
|
|
test_url / "config-test"
|
|
test_url /hello "Hello world"
|