Repository navigation
Commit 433e1cc
test: exclude fixture paths from credential redaction assertions
The Ubuntu 3.14t CI job rejected correctly redacted clone output because
its randomly generated `/tmp/.tmpg8ibob` fixture path contained `bob`.
The credential assertions scanned the whole error and trace, so ordinary
source and destination paths could masquerade as leaked credentials.
Replace only the known fixture directory with `<fixture>` before checking
the error and trace for credentials. Keep the exact redacted-option
assertions and the credential checks outside that directory. Include
`alice-bob-user-token` in the input paths so this false positive is now
covered deterministically, rather than depending on a random name.
All four trace subtests failed before the assertion fix. The focused CLI
and Gix runs each pass three redaction tests and four subtests afterward.
`ruff check`, `ruff format --check`, and `git diff --check` also pass.
This commit changes only `test/test_git.py` and is intentionally not pushed.1 parent b03c608 commit 433e1cc
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
532 | | - | |
| 532 | + | |
533 | 533 | | |
534 | | - | |
| 534 | + | |
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| |||
0 commit comments