Commit 017e2f0
test(oauth-proxy): don't fail CI when a live upstream is unreachable (#4182)
The MCP OAuth Proxy E2E suite proxies metadata / authorize redirects from ~13
LIVE third-party servers (Stripe, OpenRouter, Notion, Supabase, …) and asserts
the proxy's discovery/rewriting contract. When one of those servers is slow or
down, the proxy correctly returns 502 (bad gateway), but the test asserted 200/
302 and reddened the `storage-integration` gate — a recurring flake that has
blocked unrelated PRs (the OpenRouter `.well-known` fetch timing out at ~12s).
Skip a server's contract assertions when the proxy reports the upstream is
unreachable (HTTP 502, which none of these tests ever expects), with a loud
warning. Every reachable server is still fully asserted, and any non-502 status
flows through to the real expectations, so a genuine proxy regression is never
masked — only third-party outages stop blocking the merge gate.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2454e1e commit 017e2f0
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
51 | 71 | | |
52 | 72 | | |
53 | 73 | | |
| |||
182 | 202 | | |
183 | 203 | | |
184 | 204 | | |
| 205 | + | |
185 | 206 | | |
186 | 207 | | |
187 | 208 | | |
| |||
212 | 233 | | |
213 | 234 | | |
214 | 235 | | |
| 236 | + | |
215 | 237 | | |
216 | 238 | | |
217 | 239 | | |
| |||
248 | 270 | | |
249 | 271 | | |
250 | 272 | | |
| 273 | + | |
251 | 274 | | |
252 | 275 | | |
253 | 276 | | |
| |||
276 | 299 | | |
277 | 300 | | |
278 | 301 | | |
| 302 | + | |
279 | 303 | | |
280 | 304 | | |
281 | 305 | | |
| |||
0 commit comments