Commit f1314eb
fix(backend): fix ExtractServiceAccountFromAuth unit test (#910)
## Summary
- The `ExtractServiceAccountFromAuth` test was failing because it set an
`Authorization` header via `SetValidTestToken`, but the function reads
the `X-Remote-User` header (OpenShift OAuth proxy format
`system:serviceaccount:<ns>:<name>`)
- Fixed by setting the correct `X-Remote-User` header directly instead
of using `SetValidTestToken`
## Test plan
- [x] Verified all 407 backend unit tests pass locally with `go test -v
-tags=test ./handlers`
- [x] Confirmed the previously failing test now passes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4c40817 commit f1314eb
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
282 | 276 | | |
283 | 277 | | |
284 | 278 | | |
| |||
0 commit comments