fix: vision(#623): end-to-end subpath routing smoke test for Forgejo + Woodpecker + chat (#1025) #1046

Closed
dev-qwen2 wants to merge 5 commits from fix/issue-1025-1 into main
Showing only changes of commit e99604b7dc - Show all commits

View file

@ -298,11 +298,42 @@ check_redirects_to() {
fi
}
# ─────────────────────────────────────────────────────────────────────────────
# Argument parsing
# ─────────────────────────────────────────────────────────────────────────────
parse_args() {
while [ $# -gt 0 ]; do
case "$1" in
--base-url)
BASE_URL="$2"
shift 2
;;
-h|--help)
echo "Usage: $0 [--base-url BASE_URL]"
echo ""
echo "Environment variables:"
echo " BASE_URL — Edge proxy URL (default: http://localhost)"
echo " EDGE_TIMEOUT — Request timeout in seconds (default: 30)"
echo " EDGE_MAX_RETRIES — Max retries per request (default: 3)"
exit 0
;;
*)
echo "Unknown option: $1" >&2
echo "Usage: $0 [--base-url BASE_URL]" >&2
exit 1
;;
esac
done
}
# ─────────────────────────────────────────────────────────────────────────────
# Main test suite
# ─────────────────────────────────────────────────────────────────────────────
main() {
parse_args "$@"
log_section "Edge Subpath Routing Smoke Test"
log_info "Base URL: $BASE_URL"
log_info "Timeout: ${EDGE_TIMEOUT}s, Max retries: $EDGE_MAX_RETRIES"
@ -386,5 +417,6 @@ main() {
exit 0
}
# Run main
# Parse arguments and run main
parse_args "$@"
main "$@"