Commit ceb9d00
committed
docs(tests/trash): warn future contributors about Windows MAPPING_FILE quirk
QA-recommended follow-up to df82528 (G6 batch 2). The Windows
path-resolution bug (`/opt/splunk/...` → `C:/opt/splunk/...`) only
shows up on re-run after a test forgets to patch MAPPING_FILE — the
first run uses a clean tmp_path and passes, but subsequent runs hit
stale state in the artifact directory and produce flake-style
"rule already exists" failures.
Adds a `⚠ Windows test-isolation note` docstring block to both
TestRestoreCsvFromTrash and TestRestoreRuleFromTrash explaining:
- Why MAPPING_FILE resolves to C:/opt/splunk/... on Windows
- That every test MUST patch BOTH wl_trash.OWN_LOOKUPS AND
wl_trash.MAPPING_FILE to tmp_path
- Pointer to commit df82528 for full discovery context
Pure documentation — no logic changes, no test count changes.
35/35 trash tests still passing. doc-drift OK against build 663.1 parent ea9b8b6 commit ceb9d00
1 file changed
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
632 | | - | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
633 | 645 | | |
634 | 646 | | |
635 | 647 | | |
| |||
731 | 743 | | |
732 | 744 | | |
733 | 745 | | |
734 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
735 | 760 | | |
736 | 761 | | |
737 | 762 | | |
| |||
0 commit comments