Commit 7fcf82b
Rust e2e: align in-process host auth token with the mock's registered user
In-process, the SDK github_token (lowered to --auth-token-env COPILOT_SDK_AUTH_TOKEN
for the spawned child) is not passed to the worker, so host-side auth resolves from
GH_TOKEN/GITHUB_TOKEN. The InProcessEnvGuard set these to a placeholder the replay
mock never registered, so auth resolved as unauthenticated (client::should_get_
authenticated_status / should_list_models_when_authenticated) or hit real GitHub.
Use DEFAULT_TEST_TOKEN — the token set_default_copilot_user registers as the
authenticated Copilot user — so in-process auth matches the mock. Fixes the two
client auth tests and callback_token_is_applied_as_authorization_header in-process.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2786c9f commit 7fcf82b
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
612 | | - | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
613 | 619 | | |
614 | 620 | | |
615 | 621 | | |
| |||
0 commit comments