Skip to content

[Testing] No integration test exercises the full create -> top-up -> partial withdraw -> cancel lifecycle end-to-end through the backend API against the contract #1109

Description

@grantfox-oss

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

backend/tests/integration/ exists but individual controller/service tests are largely unit-level, mocking the chain layer. There doesn't appear to be a single integration test that walks a stream through its full realistic lifecycle (create, top up, partial withdraw, cancel) verifying the indexer correctly updates withdrawnAmount/depositedAmount/status at each step in sequence. Bugs that only manifest from state accumulated across multiple operations (several of which are already individually tracked) would be caught earlier by one lifecycle test.

Acceptance criteria

  • Add an integration test in backend/tests/integration/ that performs the full lifecycle against a sandboxed/test chain environment
  • Assert stream and event state after each step
  • Document how to run it locally (sandbox mode requirements)

Files to touch

  • backend/tests/integration/

Out of scope

  • Running against real testnet/mainnet
  • Load/performance testing

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend related taskstestingTesting related tasks

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions