Repository navigation
test(backend): cover pool route authorization (#2102) - #2209
Merged
K1NGD4VID merged 3 commits intoOct 29, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Malware detection scan flagged this pull requestThe scan found 1 indicator(s) in the PR diff. This PR is blocked until a maintainer reviews the flagged files.
This is an automated triage signal; maintainers must verify whether the finding is malicious or intentional. |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds deterministic route-level coverage for pool wallet ownership, privileged admin actions, and the paused-pool response contract.
Linked issue
Closes #2102
Changes
Screenshots / Demo
Not applicable for this backend-only test change. Verification output:
Implementation notes
Mocks database, cache, transaction, and Soroban dependencies to keep route behavior deterministic. Exercises the existing Express middleware and pool routes without production-code changes.
Testing
cd backend && npm test -- --runInBand src/__tests__/poolRoutes.authorization.test.ts- passed (7 tests).cd backend && npm run typecheck- passed.cd backend && npm run build- passed.cd backend && npm run lint- passed with 43 existing warnings; no warnings in the new test.Acceptance criteria
Checklist
Notes for reviewers
CI checks will run on the pull request.