Commit 712eb96
committed
test: inject fake console token in proxy e2e so requests reach the proxy
app list resolves a console credential before issuing any request, so in
CI (no ~/.bailian/config.json, no credentials) it exited with an AUTH
error before fetch ran — the proxy received zero CONNECTs and the
"routes through proxy" assertions failed. Locally these passed only
because a real config.json supplied a token.
Inject a fake DASHSCOPE_ACCESS_TOKEN (highest-priority credential
source) so the request is actually issued and intercepted by the local
CONNECT proxy. The target stays a .invalid host, so still no real
network traffic.1 parent 0706cae commit 712eb96
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
0 commit comments