Files
dokku/tests/apps/config/check_deploy
Jose Diaz-Gonzalez be682e8504 tests: refactor the config test to use a simple python codebase instead
This should also make it possible to run the tests locally on an ARM machine.
2023-01-25 23:01:15 -05:00

18 lines
302 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 / "python/http.server"
test_url /conftest "config-test"
test_url /hello "Hello
'world'"