26 lines
870 B
Bash
Executable File
26 lines
870 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regression test for copyable installation examples and secret-path validation.
|
|
set -euo pipefail
|
|
|
|
root="$(cd "$(dirname "$0")/.." && pwd -P)"
|
|
output="$(mktemp "${TMPDIR:-/tmp}/thoth-install-docs-test.XXXXXX")"
|
|
trap 'rm -f "$output"' EXIT HUP INT TERM
|
|
|
|
"$root/scripts/verify-workspace-install-docs.sh" --fixtures-only >"$output"
|
|
|
|
for fixture in \
|
|
"copied local base fixture" \
|
|
"copied server PostgreSQL/TLS fixture" \
|
|
"copied HTTPS Git override fixture" \
|
|
"copied SSH Git override fixture" \
|
|
"copied connector binding/secret fixture" \
|
|
"core process sees connector bindings and secret files" \
|
|
"non-path secret-file fixture rejected" \
|
|
"literal secret-source fixture rejected"; do
|
|
grep -Fqx "$fixture passed" "$output" >/dev/null || {
|
|
echo "missing fixture verification: $fixture" >&2
|
|
cat "$output" >&2
|
|
exit 1
|
|
}
|
|
done
|