15 lines
491 B
Bash
Executable File
15 lines
491 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
test_dir=$(mktemp -d)
|
|
trap 'rm -rf "$test_dir"' EXIT
|
|
mkdir -p "$test_dir/bin"
|
|
printf '%s\n' '#!/bin/sh' 'exit 0' > "$test_dir/bin/curl"
|
|
chmod +x "$test_dir/bin/curl"
|
|
|
|
PATH="$test_dir/bin:$PATH" API_HEALTH_URL=http://api.test/health WEB_BASE_URL=http://web.test \
|
|
PUBLIC_SEARCH_URL=http://web.test/api/v1/public/search sh "$script_dir/smoke-production.sh" >/dev/null
|
|
|
|
printf '%s\n' 'smoke-production tests passed.'
|