Repository navigation
test(axum-rest-api-server): [#2637] final slice: crate root, wiring, mutation and manual verification - #2772
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… test support files Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…g in the crate documentation Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ring modules Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…anual verification Whole-package mutation run (118 mutants: 70 caught, 4 missed, 44 unviable) and the manual scenarios M1-M5, with the two follow-up candidates in lessons.md. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…gured under more than one label Kills the surviving T6 mutation that replaced | with ^ in the constant-time fold. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…lementation retrospective Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ceptance review Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…inal mutation run Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…cation Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
What changed in this PR
Final slice of issue #2637 for torrust-tracker-axum-rest-api-server: closes out remaining wiring/test-support decisions, adds one missing auth test found via mutation testing, and corrects a TLS configuration typo in crate docs; the rest is supporting evidence and EPIC/spec bookkeeping.
Changes:
- Add a unit test ensuring
authenticatesucceeds even when the same token value is configured under multiple labels - Fix crate documentation typo:
tsl_config→tls_config - Add/update mutation + manual verification evidence and finalize plan/spec/EPIC tracking docs for S6 completion
| File | Description |
|---|---|
| packages/axum-rest-api-server/src/v1/middlewares/auth.rs | Adds a regression test for duplicate token values across labels (mutation survivor kill). |
| packages/axum-rest-api-server/src/lib.rs | Fixes TLS config table name typo in crate docs (tls_config). |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/test-refactor-plans/wiring-modules-tests.md | Adds a test plan for wiring-only module files (no tests proposed). |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/test-refactor-plans/v1-middlewares-auth-tests.md | Documents the mutation survivor and the added duplicate-token test. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/test-refactor-plans/v1-context-auth-key-handlers-tests.md | Updates plan state to reflect maintainer approval. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/test-refactor-plans/testing-support-tests.md | Adds out-of-scope decision record for src/testing/ support files. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/test-refactor-plans/lib-tests.md | Adds plan + rationale for no tests in crate root; records doc fix. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/test-refactor-plans/README.md | Updates plan index to include S6 plans. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/mutation-evidence.md | Adds bounded mutation-testing evidence and survivor summary. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/manual-verification-evidence.md | Adds manual verification results (M1–M5). |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/lessons.md | Records follow-ups/observations discovered during the slice. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/implementation-retrospective.md | Adds implementation retrospective for #2637. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/coverage-evidence.md | Records the final S6 coverage measurement. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/agent-review-reports.md | Adds final independent review summary and resolved findings. |
| docs/issues/open/2637-1347-add-tests-axum-rest-api-server/ISSUE.md | Updates spec state: final coverage, task/slice completion, verification status. |
| docs/issues/open/1347-overhaul-packages-testing/EPIC.md | Updates EPIC tracking and final coverage deltas for #2637. |
Review effort: Lite
Remove the stale 'proposed' status sentence of the wiring plan and name the test labels (first, copy, other) of the duplicate-token plan as implemented. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at cf6ad6b6df5d1ae7dc2f7a0cc9f0db962bd61b02. Recomputed from the bytes at this head, against the merge base 35ec81000; git merge-tree against develop 997d85416 exits 0 with no conflicted path, and the two sides change no file in common (2 files on develop, 17 here).
Process: open-pull-request, process-pr-review, create-issue with its templates, write-unit-test, commit-changes and write-markdown-docs govern this change. The retrospective and the audit match their templates and the plans match their predecessors; the manual evidence does not (F3). The closing keyword fits the last slice.
The change against its claim: the tls_config fix is correct at all three sites of the crate documentation. The new authenticate test fails under | to ^ only in its shared-value case, as claimed. The coverage percentages, the EPIC deltas, the mutation table (19 files; 71, 3, 44), the 170 unit and 58 integration tests, the 25 pub mod lines and the 21 log-target tests recompute. Three claims do not hold: Version has a consumer (F1), the S5 comparison (F2) and the issue-wide statement about production code (F5).
Consistency: the links and anchors of the 15 changed Markdown files resolve; one frontmatter path is dead (F4). Nothing moves, and the project dictionary is unchanged.
Hygiene: 13 Conventional commits in the [#2637] form, bodies matching their diffs, author equal to committer, and one attribution footer each, which no rule in the tree forbids. git diff --check is clean, the open-pull-request commit-id check prints nothing, and the closing-keyword scan matches only the issue this change implements.
Findings: F1, F2 and F3 block: F1 misleads a reader, the description's copy of F2 lands in the merge commit, and F3's inputs exist only in a git-ignored path. F4 to F8 are Minor, F9 to F13 Nit, F14 a Suggestion.
Checked, no finding: the line references of the plans and mutation-evidence.md; the tls_config claim against deny_unknown_fields in the v3 HttpApi; the audit's URLs and review ids against the threads; the wiring-module and importer claims; the S5 merge time.
Checks
On the loop's compute node at this head, against the merge base 35ec81000 (receipt server-gates-kranich-521): the repository's pre-commit gate exit 0, clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new; the repository's audit validator on pr-2772-review exit 0 (2 rows, 2 log entries, no failures), run with the pull request's commit list captured from the forge, and blind to the unprocessed second round by construction. GitHub checks at this head at posting time: "Publish (Development): completed/skipped; Publish (Release): completed/skipped; Context: completed/success; Package Coverage Regression: completed/success; Package Coverage (torrust-tracker-axum-rest-api-server): completed/success; Docs Lint: completed/success; Build on ubuntu-latest (stable): completed/success; Build on windows-latest (nightly): completed/success; Build on macos-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Build on macos-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Docker E2E: completed/skipped; Test (Docker) (release): completed/success; Shipped Features: completed/success; Documented Clippy Allows: completed/success; Workspace Packaging: completed/success; Unit (nightly): completed/success; Unit (stable): completed/success; Layer Boundary Bans: completed/success; Generate Coverage Report: completed/success; Discover Package Coverage: completed/success". At posting, develop is 997d85416.
…mplate form Embed the configurations, the steps with their timestamps and the full outputs of the repeated M1-M5 run, as V1-V5. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…of PR 2772 Version is used by the tracker binary, the S5 comparison and its baseline are stated exactly, the production-code statement names the S2 refactor, the torrust#2745 statements of the test support plan are current, the slice table and the frontmatter record PR 2772, and the dates, the log-target and extractor statements and the mutation counts agree with the bytes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ounds of PR 2772 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
ACK 6aa3f52 |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 6aa3f52c9c7b1c47b4b83f39d960f4961fe9a023. Recomputed from the bytes at this head, covering cf6ad6b6d..6aa3f52c9, against the previous round's head cf6ad6b6d and the merge base 35ec81000; git merge-tree against develop ca8efcd4d exits 0 with no conflicted path and no file changed on both sides (34 files there, 17 here).
What moved: a fast-forward of four commits over 12 paths; the other 2,394 tree entries are byte-identical to cf6ad6b6d.
Previous findings:
- F1 fixed: the six statements say the binary uses
Version. - F2 fixed: paragraph and description.
- F3 fixed: template form; the configurations rebuild; the outputs agree with the code.
- F4 fixed.
- F5 fixed: the S2 refactor is named.
- F6 fixed: the audit states what the grep returns.
- F7 fixed.
- F8 fixed: audit row, reply and thread.
- F9 fixed.
- F10 fixed.
- F11 fixed: module counts.
- F12 fixed.
- F13 fixed.
- F14 fixed.
The new commits: the statements recompute except F15 to F18, F21 and F22. 6aa3f52c9 changes only the audit: its 15 new rows, sources, review ids, severities, 15 replies and thread states reconcile with the forge, and its log is in order. The commit-id check prints nothing and the links of the 15 changed Markdown files resolve.
Hygiene: four Conventional commits in the [#2637] form, author equal to committer, one attribution footer each, which no rule in the tree forbids. git diff --check reports one line (F19); one body overclaims (F20).
Findings: F15 Minor, partly fixed; F16 to F20 Nit, still open; new, F21 Minor and F22 Nit. None blocks: each is a record the author can repair after merge.
Checked, no finding: the Version users; the S5 and S1 arithmetic; the with_layers claim; the testing gate; the run's codes, bodies and fields; the audit's named greps.
Checks
On the loop's compute node, against the merge base 35ec81000: at this head (receipt server-gates-kranich-532) the repository's pre-commit gate exit 0, clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new; the repository's audit validator on pr-2772-review exit 0. At 18c16c7fd, whose code this head keeps unchanged (the last commit touches only the audit), cargo test -p torrust-tracker-axum-rest-api-server exit 0: 170 unit and 58 integration tests passed, none failed (receipt server-gates-kranich-527). GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Package Coverage (torrust-tracker-axum-rest-api-server): completed/success; Docker E2E: completed/skipped; Unit (stable): in_progress/pending; Shipped Features: completed/success; Documented Clippy Allows: completed/success; Unit (nightly): in_progress/pending; Workspace Packaging: completed/success; Layer Boundary Bans: completed/success; Test (Docker) (release): in_progress/pending; Docs Lint: completed/success; Build on macos-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on windows-latest (nightly): completed/success; Build on ubuntu-latest (stable): completed/success; Generate Coverage Report: completed/success; Discover Package Coverage: completed/success". At posting, develop is 92665ae17.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
1 resolved since last review
Review effort: Lite
…ng review of PR 2772 Quote the headers of the manual transcript, give the exact openssl command and the cut lengths, drop the trailing spaces of the embedded diffs, correct the L3 prediction and the deserialization wording of the lib plan, and state the mutation counts of the renamed test. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… 2772 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 081a0b23d3e27b14dd3122882989c8fa91e34c7a. Recomputed from the bytes at this head, covering 6aa3f52c9..081a0b23d, against the previous round's head 6aa3f52c9 and the merge base 35ec81000; git merge-tree against develop bb41cb561 exits 0 with no conflicted path and no file changed on both sides (39 files there, 17 here).
What moved: a fast-forward of two commits over four paths, +197/-46; the other 2,402 tree entries are byte-identical to 6aa3f52c9. 081a0b23d changes only the audit. F1 to F14 remain fixed.
Previous findings that changed state:
- F15 fixed: line 100 names the current test.
- F16 fixed: the L3 line carries the correction.
- F17 fixed: 0, 2 and 5, and 1, 4 and 6 under the first name, recompute.
- F18 partly fixed: the file is corrected; the description's "by hand" and the audit's "full outputs" remain.
- F19 fixed: the three blocks equal the recorded
diffoutput. - F20 fixed: line 441 records the correction.
- F21 fixed: the new entries match the forge times.
- F22 fixed: line 43 and the 14 entries.
The new commits: 80d83473c's statements recompute except F24 to F26. In 081a0b23d the ten rows, their reviews, severities, reply URLs and thread states reconcile with the forge, all 27 threads are resolved, and the log is chronological; F23, raised at 80d83473c, is fixed. The commit-id check prints two ids (F27). The links of the 15 changed Markdown files resolve.
Hygiene: two Conventional commits in the [#2637] form, author equal to committer, one attribution footer each, which no rule in the tree forbids. git diff --check from 6aa3f52c9 exits 0.
Findings: F27, F29 and F30 Minor; F18, F24 to F26 and F28 Nit. None blocks: each is a record the author can repair after merge.
Checked, no finding: the audit's other named commands; the two pushes against the review heads; the deserialization wording; the A1 to A3 arithmetic.
Checks
On the loop's compute node, against the merge base 35ec81000: at this head (receipt server-gates-kranich-540) the repository's pre-commit gate exit 0 (62 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new; the repository's audit validator on pr-2772-review exit 0 (27 rows, 11 log entries, no failures). The package's code is unchanged since 18c16c7fd, where cargo test -p torrust-tracker-axum-rest-api-server passed 170 unit and 58 integration tests (receipt server-gates-kranich-527). GitHub checks at this head at posting time: "Build on ubuntu-latest (nightly): queued/pending; Build on macos-latest (stable): queued/pending; Build on windows-latest (stable): queued/pending; Build on macos-latest (nightly): queued/pending; Build on windows-latest (nightly): queued/pending; Build on ubuntu-latest (stable): queued/pending; Docs Lint: queued/pending; Docker E2E: completed/skipped; Shipped Features: queued/pending; Unit (nightly): queued/pending; Unit (stable): queued/pending; Documented Clippy Allows: queued/pending; Layer Boundary Bans: queued/pending; Workspace Packaging: queued/pending; Generate Coverage Report: queued/pending; Test (Docker) (release): queued/pending; Discover Package Coverage: queued/pending". At posting, develop is a50a84e35.
| - Follow-up PR URL: N/A | ||
| - Reply URL: https://github.com/torrust/torrust-tracker/pull/2772#discussion_r4512145648 | ||
|
|
||
| ### F23 - The body of `18c16c7fd` credits it with a mutation count change it did not make |
There was a problem hiding this comment.
[Minor][F27] This entry cites two branch commit ids, and the open-pull-request commit-id check prints both.
The ids are in this heading and at lines 371, 372 and 373. The skill says no durable reference may cite a PR-branch commit by id, because a rebase rewrites it, and this audit's Completion Rules say the same. The log at line 441 already names both commits by subject; please cite the subjects here too.
| - 2026-11-09 10:50 UTC - After a retry the token worked: replied to the threads of F8-F11 and F13-F17 and resolved them, and resolved F12 (10:50:25 to 10:50:57 UTC). The replies of F9 and F11 cite the commit `docs(pr-reviews): [#2637] record the second and third review rounds of PR 2772` before it existed. | ||
| - 2026-11-09 10:51 UTC - Committed this audit (10:51:42 UTC) and pushed it at 10:54 UTC (push finished 10:54:33 UTC). | ||
| - 2026-11-09 11:08 UTC - Review `5825002539` of `da2ce7` approved the head with eight open items (F18-F25); at 11:12 UTC Copilot review `5825043286` added two comments (F26-F27). | ||
| - 2026-11-09 11:16 UTC - Correction (F24, F23): the entry stamped 2026-11-09 10:50 UTC in the commit `docs(pr-reviews): [#2637] record the second and third review rounds of PR 2772` described four commits and a push that had not happened yet; it was replaced by the four entries above, which state what happened at each time. The body of the commit `docs(issues): [#2637] correct the S6 records after the review of PR 2772` says it makes the mutation counts agree with the bytes; that commit changed only the `measured-utc` date of `mutation-evidence.md`, and the failure counts were corrected by `test(axum-rest-api-server): [#2637] name the shared-value token test and its cases after what they check`. |
There was a problem hiding this comment.
[Minor][F30] Two log entries are stamped before the commit they describe, the kind of slip F21 corrected.
This entry, stamped 11:16 UTC, says the 10:50 entry "was replaced by the four entries above", but that replacement is in 081a0b23d, dated 11:22:26 UTC; 80d83473c, at 11:16:40, does not touch this file. The next entry, stamped 11:19, counts "the commit that adds this entry" among the fixes. The replies of 11:19:50, 11:20:10, 11:20:14 and 11:20:19 UTC say "Fixed in" that commit about two minutes before it existed; line 438 records that slip for two earlier replies, and these four are not recorded. process-pr-review says to stamp an event only after it happened. Please stamp the correction with the commit's time and record the four replies.
| - Reviewer finding ID: F15 | ||
| - Source URL: https://github.com/torrust/torrust-tracker/pull/2772#discussion_r4512050866 | ||
| - Concern: The verification of F2 named `it_should_authenticate_a_token_configured_under_more_than_one_label`, which no longer exists. | ||
| - Solution: It names `it_should_match_a_token_against_every_label_when_two_labels_share_a_value`. The sweep `grep -rn it_should_authenticate_a_token_configured_under_more_than_one_label docs` finds only the auth plan's Results, which names the old name on purpose. |
There was a problem hiding this comment.
[Minor][F29] Two current-tree verifications do not return what they state.
The sweep here "finds only the auth plan's Results"; at this head it also finds lines 306 and 307 of this entry. At line 399, grep -c "reuses the audit IDs" "returns 0"; it returns 1, that line itself. In both cases the command matches the entry that reports it, and the dispositions hold: the 14 parentheticals are gone and the old name remains only where it is intended. process-pr-review asks these records to state only what ran; please restate what each returns.
|
|
||
| Round 2 is the Copilot review `5807554509` (submitted 2026-11-06 21:54 UTC; one inline comment, row F3). Round 3 is the review `5823198555` of the maintainer's reviewer `da2ce7` (CHANGES_REQUESTED, 2026-11-09 08:15 UTC) with 14 inline findings carrying `[Severity][Id]` prefixes (rows F4-F17; the reviewer's IDs F1, F2 and F3 collide with this audit's F1-F3, and the reviewer's F4 to F14 got the next audit-local ordinals in source order, so every row of that review has the original ID in its detail entry). CI at that head was green, so no CI finding exists. | ||
|
|
||
| Round 4 is the approving review `5825002539` of `da2ce7` (2026-11-09 11:08 UTC; its 14 inline comments are rows F18-F25, reviewer IDs F15-F22) and Copilot's review `5825043286` (11:12 UTC, rows F26-F27). Each of these rows got the next audit-local ordinal in source order; the reviewer's original ID is in the detail entry. |
There was a problem hiding this comment.
[Nit][F28] "its 14 inline comments" is eight.
Review 5825002539 has eight inline comments, reviewer IDs F15 to F22, which is what the rows named in this sentence and the log at line 440 say.
| protected routes, the token sources, the configuration-gated contexts, the statistics formats, and TLS with a | ||
| graceful shutdown. Scenarios M1-M5 of the issue spec are recorded as V1-V5 below. The commands were typed for this | ||
| run and executed one after another by a sequential shell script against the tracker binary; the output is copied from | ||
| the script's transcript. Each transcript line is the `curl` command as executed. The response bodies are cut to the |
There was a problem hiding this comment.
[Nit][F24] The Purpose says nothing is edited, but 80d83473c edited the transcript.
These lines call each transcript line "the curl command as executed" and end with "nothing is edited". 80d83473c changes 17 $ curl lines, adding the quotes around the -H argument and keeping their timestamps, and it removes the sentence of 6aa3f52c9 saying the transcript shows them after quote removal. Those lines are now the commands as passed, not a copy of what the script printed. They also omit what the script added: the curl shown prints neither HTTP 200 (curl exit 0) nor a body cut at 160. Please say that the quotes were restored for readability and that the script wrapped curl.
| graceful shutdown. Scenarios M1-M5 of the issue spec are recorded as V1-V5 below. The commands were typed for this | ||
| run and executed one after another by a sequential shell script against the tracker binary; the output is copied from | ||
| the script's transcript. Each transcript line is the `curl` command as executed. The response bodies are cut to the | ||
| first characters by the script (120 to 330 characters, chosen per command: 200 for most, 160 for the stats JSON, 330 |
There was a problem hiding this comment.
[Nit][F25] The list of cut lengths does not match the bytes.
"160 for the stats JSON": the stats?token=bad body at line 184 is cut at 120, which the list assigns to nothing, and the metrics?format=json body at line 298 is also cut at 160. "200 for most": no printed body reaches 200; apart from the seven cut bodies, the other 14 are at most 107 characters and complete. Please list what the transcript shows.
| --- | ||
| doc-type: manual-verification-evidence | ||
| issue-spec: docs/issues/open/2637-1347-add-tests-axum-rest-api-server/ISSUE.md | ||
| last-updated-utc: 2026-11-09 10:36 |
There was a problem hiding this comment.
[Nit][F26] last-updated-utc still gives 10:36, the time of the run, though 80d83473c changed this file at 11:16:40 UTC. The same kind of slip as F12 on the EPIC.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
No open issues 🎉
2 resolved since last review
Review effort: Lite
|
ACK 081a0b2 |
Issue #2637 is closed (S6 merged through #2772). Move the spec folder, set status done and the closed spec-path, repair the live references (the EPIC row and links, two closed specs, a source comment) and the relative links of the moved files. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ssues/closed b29e63b chore(issues): archive closed issue #2637 spec to docs/issues/closed (josecelano-bot) Pull request description: Related to #2637 Archives the spec of issue #2637 (closed on GitHub by #2772) from `docs/issues/open/` to `docs/issues/closed/`, following the `cleanup-completed-issues` skill. Documentation only, plus one comment path. ## Summary - Verified #2637 is `CLOSED` on GitHub (S6 merged through #2772). - Moved `docs/issues/open/2637-1347-add-tests-axum-rest-api-server/` to `docs/issues/closed/`; `status: done`, the closed `spec-path`, the artifact paths and `last-updated-utc` updated; the "issue closed and spec moved" checkpoint and the S6 slice row set; a progress-log entry added. - EPIC #1347: the #2637 subissue row is `DONE` with the closed path, the two coverage-table links point to the closed spec, and a log entry records the close. - Repaired the live references: `related-artifacts` of the closed specs #2653 and #2726, the doc comment in `packages/axum-rest-api-server/src/v1/context/whitelist/handlers.rs` (a path in a comment, no code change), and the relative links of the moved files (the EPIC guidelines links). - Left as they are: the paths in `docs/pr-reviews/pr-2638-review/` and `pr-2746-review/`, which record the path that existed when the commands ran. ## Validation The pre-commit script passed, `cargo +nightly fmt --all -- --check`, `linter markdown` and `linter cspell` passed, and `git diff --cached --check` is clean. `rg` for the old `docs/issues/open/2637` path finds only the two historical review records above. The pre-push hook passed on the branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ACKs for top commit: josecelano: ACK b29e63b da2ce7: ACK b29e63b — the 29-file archive move, its repaired references and all relative links recomputed at this head, with no blocking finding standing Tree-SHA512: 483a73944a5df4022ac684323929eeae4e73b1859df3f4abfebc32134c54032e5850a8772705c747b7cac6159c88d1f6ba9e874897de4771a5117f764dbb63da


Closes #2637
Final slice S6 of the
torrust-tracker-axum-rest-api-serverpackage tests (subissue of EPIC #1347): the crate root, the wiring and test-support files (ledger rows 19-31), then the closing tasks T6-T8. One test is added; the only production-file change is a documentation fix. No behavior of the production code changed.Summary
testing/environment.rsandtesting/mod.rsare test support owned by Reorganize test support code shared between workspace packages (EPIC #1669) #2482 and Migrate the REST API test environment to the token lifecycle #2449 and are decided out of scope (no test);lib.rsgets no test and its crate documentation now spellstls_config(it saidtsl_configin three places; the corrected example parses into the v3HttpApi, the old spelling is rejected); the ten wiring-only files are decided no-change (23 of the 25pub modremovals break the build; the two survivors are the emptytorrent/resourcesmodules, recorded inlessons.md).cargo mutantsrun, 118 mutants: 71 caught, 3 missed, 44 unviable (mutation-evidence.md). The first run found one real survivor,|replaced by^in the constant-time fold ofauthenticate(it only differs when two token labels hold the same value, and then a valid token would be rejected). It got an approved plan and one test of three cases; the mutant is now killed. The other survivors are aDebugimpl decided as untested and two test-support initialisers owned by Reorganize test support code shared between workspace packages (EPIC #1669) #2482/Migrate the REST API test environment to the token lifecycle #2449.SIGINTshutdown, run by hand withcurlagainst the built tracker and recorded in the template form with the configurations and outputs embedded (manual-verification-evidence.md). Observation, not changed here: a missing or invalid token answers500with a plain-text body; changing it is a breaking REST API change, so it belongs to the REST API v2 (decided by the maintainer; recorded inlessons.md).docs/pr-reviews/pr-2772-review/PR-REVIEW.md.Coverage (stable Rust 1.99.1,
cargo-llvm-cov 0.6.16, filtered topackages/axum-rest-api-server/src/)The first measurement of the issue (T1, before #2449 and #2653 changed the package) was unit-only 40.24% and aggregate 85.31% lines. Versus the S5 final figures the line percentages move by 0.04 pp, the region percentages by 0.03 pp and the function percentages by 0.24 pp (the denominator gained a function); covered lines and functions are unchanged and covered regions are one fewer (3,490 to 3,489 aggregate, 3,463 to 3,462 unit-only). 170 unit tests (167 before this slice) and 58 integration tests. Every uncovered line has a recorded owner or reason.
Files
packages/axum-rest-api-server/src/lib.rs(documentation),packages/axum-rest-api-server/src/v1/middlewares/auth.rs(one test),docs/issues/open/2637-1347-add-tests-axum-rest-api-server/,docs/issues/open/1347-overhaul-packages-testing/EPIC.md,docs/pr-reviews/pr-2772-review/.Validation
All on the rebased branch (onto
developwith #2745): the pre-commit script passed for every commit and./contrib/dev-tools/git/hooks/pre-push.shpassed.cargo test -p torrust-tracker-axum-rest-api-server,cargo +nightly fmt --all -- --check,linter allandcargo machete --with-metadatapassed. Coverage and the mutation run were repeated after the rebase. The history was rebased before the first push (the branch was never pushed before the PR); no commit was squashed. The issue closes with this PR; moving the spec todocs/issues/closed/is the clean-up PR.🤖 Generated with Claude Code