Skip to content

Add integration test for alert registration returning 400 for invalid Stellar wallet address #491

Description

@Chucks1093

Summary

The price alert registration endpoint accepts a wallet_address field that must be a valid Stellar address. An integration test should confirm that a malformed address is rejected before any database write occurs.

Scope

  • POST to /alerts with a wallet address that is not a valid Stellar format
  • Assert response is 400 with a descriptive validation error
  • Assert no alert record was created in the database

Acceptance Criteria

  • Returns 400 for malformed wallet address
  • Error body identifies the wallet_address field
  • No alert record created after the failed request

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions