Skip to content

Add integration test for price alert registration returning 409 for duplicate alert #541

Description

@Chucks1093

Summary

A wallet should not be able to register two active alerts for the same creator, direction, and target price. Submitting a duplicate should return 409 with a clear error rather than silently creating a second alert that fires twice.

Scope

  • Register a price alert for a creator with a specific direction and target price
  • Register the same alert again with identical fields
  • Assert the second registration returns 409
  • Assert only one alert record exists in the database

Acceptance Criteria

  • Second identical registration returns 409
  • Error body explains that an identical alert already exists
  • Only one alert record in the database after both requests

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