This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/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.'
|
||||
Reference in New Issue
Block a user