Repository navigation
Description
Goal
Improve maintainable test coverage for the packages/axum-http-server package, concentrating on a fast, package-local safety net for HTTP tracker transport contracts, listener lifecycle, protocol-response boundaries, and test readability.
Background
The package contains the BitTorrent HTTP tracker transport: announce, scrape, health-check routes, HTTP middleware, and server lifecycle. The work was accidentally associated with #1348 after historical package names became misleading following package renames/splits. Issue #1348 remains correctly scoped to packages/udp-core and is not modified by this issue.
This issue records the correct GitHub identity for the completed and in-review Axum HTTP server testing work. The replacement pull request will supersede #2129, which referenced the unrelated #1348.
Scope
- Record package-source coverage baseline and achieved increase.
- Maintain focused unit tests for protocol response mapping, request-ID middleware, authentication-key extraction, and server registration cleanup.
- Retain package integration and cross-package health-check coverage at their appropriate boundaries.
- Document reviewed test-design patterns, including causal initial-state scenario fixtures.
- Process applicable review feedback on the replacement PR.
Out of Scope
- Tests or specifications for
packages/udp-core(Overhaul Packages Testing: Add tests forudp-tracker-corepackage #1348). - Tests or specifications for
packages/http-core(Overhaul Packages Testing: Add tests forhttp-corepackage #1349). - Unrelated production refactoring.
Relationship
- Parent: Overhaul: Packages Testing #1347
- Supersedes the incorrect Overhaul Packages Testing: Add tests for
udp-tracker-corepackage #1348 identity used by PR test(axum-http-server): add package-local transport tests (#1348) #2129; it does not supersede or close Overhaul Packages Testing: Add tests forudp-tracker-corepackage #1348 itself. - Replacement PR: forthcoming; it will supersede test(axum-http-server): add package-local transport tests (#1348) #2129.
Activity
Merge torrust#2137: test(axum-http-server): strengthen package-local …
Merge #2216: docs(issues): [#1347] add subissue spec guidelines
[-]Overhaul Packages Testing: Add tests for axum-http-server package[/-][+]Overhaul Packages Testing: Add tests for axum-http-server` package[/+][-]Overhaul Packages Testing: Add tests for axum-http-server` package[/-][+]Overhaul Packages Testing: Add tests for `axum-http-server` package[/+]docs(issues): move axum REST API test spec out of #1349
Merge #2407: docs(issues): [#1348] add udp-core package testing speci…
Merge #2935: docs(issues): [#2583] make the #1347 publish prerequisit…