Repository navigation
test(server): pin the doc-page serve and the pipeline Refused verdict - #461
Conversation
2830e34 to
a5e18b0
Compare
plusky
left a comment
There was a problem hiding this comment.
APPROVE — pin the doc-page serve and the pipeline Refused verdict (incremental a137884..a5e18b0, test-only).
OCR delegate preview: 2 files, 0 reviewable / 2 excluded (tests default_path) — reviewed manually in full.
Manual + adversarial pass: (1) audit_wiremock refusal_paths test gains the mark_as_duplicate self-dup pre-write case — Refused with no rule, exactly 1 record, 1 upstream (single-id classify; policy has no identity criteria so W=0). The added id=7 mock is inert for earlier cases (they touch ids 0/99/1..26-refused-at-zero-requests only). Catches the mutants-found hole (note_refused no-op → verdict-less). (2) whoami-table assert_case_outcome pins quicksearch_syntax body content (mounted page 'quicksearch'; empty serve now fails). No production code touched; no counts, denials, or audit shapes change.
Merge blocked until the stack rebases onto #456's landing + CI green.
cargo-mutants found two survivors in the new pipeline code: no test pinned that quicksearch_syntax serves the documentation page it fetched, and none pinned the Refused verdict on a pipeline pre-write refusal. The whoami-count outcome assertion now pins the served page text, and refusal_paths_write_exactly_one_record_each gains a self-duplicate case recording Refused with one classify and no rule. Both mutants are caught on re-run.
a5e18b0 to
fc9d454
Compare
Split from #453 — PR 8 of 8 (stacked on the step-5 PR).
Addresses #452.
Step 6 of #452: pins the doc-page serve and the pipeline Refused verdict with wiremock tests. Tests only; no code change.
Per-commit gate (fmt, clippy, clippy --features gen, rustdoc, rustdoc --features gen, tests, doctests) —
1ea71ec,13ee2cf,9cc59d1,847b0fe,c971a68,f3b406e,5803190: 7/7 pass each.