Skip to content

Add integration test for holdings endpoint returning 400 for malformed Stellar address #511

Description

@Chucks1093

Summary

The wallet holdings endpoint must validate the address path param before querying the database. An integration test should confirm a malformed address returns 400 with a clear error and no database query is executed.

Scope

  • Call GET /wallets/:address/holdings with several invalid address formats: too short, wrong prefix, contains invalid characters
  • Assert each returns 400 with a descriptive error identifying the address field
  • Assert no database query was attempted for invalid inputs

Acceptance Criteria

  • Returns 400 for address that is too short
  • Returns 400 for address with wrong prefix
  • Returns 400 for address with invalid characters
  • Error body identifies the address field in all cases

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions