fix(auth): close Task 15 review round two
This commit is contained in:
@@ -30,6 +30,7 @@ output="$temporary_root/playwright"
|
||||
mkdir -p "$output"
|
||||
sentinel="task15-sentinel-$(openssl rand -hex 24)"
|
||||
export THT_TASK15_SENTINEL="$sentinel"
|
||||
readonly browser_specs=(e2e/auth.spec.ts e2e/f1.spec.ts)
|
||||
|
||||
sanitize_failure_log() {
|
||||
sed -E \
|
||||
@@ -41,7 +42,7 @@ sanitize_failure_log() {
|
||||
|
||||
if ! (
|
||||
cd "$root/frontend"
|
||||
THT_E2E_AUTH_STACK=1 "$playwright" test e2e/auth.spec.ts --workers=1 --output="$output"
|
||||
THT_E2E_AUTH_STACK=1 "$playwright" test "${browser_specs[@]}" --workers=1 --output="$output"
|
||||
) >"$log" 2>&1; then
|
||||
echo "authentication smoke: hermetic browser suite failed" >&2
|
||||
sanitize_failure_log
|
||||
@@ -53,4 +54,4 @@ if rg -a -Fq -- "$sentinel" "$log" "$output"; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf 'authentication smoke: hermetic OIDC/browser suite passed on Node %s\n' "$actual_node"
|
||||
printf 'authentication smoke: hermetic OIDC/F1 browser suite passed on Node %s\n' "$actual_node"
|
||||
|
||||
Reference in New Issue
Block a user