TestHandleProxyForwardsOrigin404Verbatim: a 404 must stay a 404 so DuckDB / DuckLake can distinguish "object missing" (terminal) from "transient gateway error" (retriable).
(t *testing.T)
| 677 | } |
| 678 | if got := atomic.LoadInt32(&originCalls); got != requests { |
| 679 | t.Fatalf("origin calls = %d, want %d; metrics-only PR must not limit origin concurrency", got, requests) |
| 680 | } |
| 681 | } |
| 682 | |
| 683 | func TestHandleProxyDoesNotRetryTerminalOriginStatuses(t *testing.T) { |
| 684 | tests := []struct { |
| 685 | name string |
| 686 | status int |
| 687 | }{ |
| 688 | {"bad-request", http.StatusBadRequest}, |
| 689 | {"forbidden", http.StatusForbidden}, |
| 690 | {"not-found", http.StatusNotFound}, |
| 691 | {"range-not-satisfiable", http.StatusRequestedRangeNotSatisfiable}, |
| 692 | } |
nothing calls this directly
no test coverage detected