Summary
Integration tests that hit auth-protected endpoints need to attach a valid wallet signature header on every request. Building these headers manually in each test is repetitive. A shared test request builder should handle auth header construction so tests focus on the scenario being tested.
Scope
- Add
buildAuthRequest(method, path, body, walletKeypair) test helper
- Signs the request body with the provided keypair and attaches the
X-Wallet-Signature header
- Returns a pre-configured request object ready for the test HTTP client
- Add a unit test confirming the generated header passes the signature verification middleware
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
Integration tests that hit auth-protected endpoints need to attach a valid wallet signature header on every request. Building these headers manually in each test is repetitive. A shared test request builder should handle auth header construction so tests focus on the scenario being tested.
Scope
buildAuthRequest(method, path, body, walletKeypair)test helperX-Wallet-SignatureheaderAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram