Skip to content

Add integration test for alert registration returning 400 when target_price is zero or negative #549

Description

@Chucks1093

Summary

A price alert with a zero or negative target price is meaningless. The registration endpoint should reject these values with a 400 before writing to the database.

Scope

  • POST to /alerts with target_price: 0 and assert 400
  • POST with target_price: -1 and assert 400
  • Assert the error body identifies the target_price field
  • Assert no alert record was created

Acceptance Criteria

  • Zero target price returns 400
  • Negative target price returns 400
  • Error body identifies target_price field
  • No alert record created after failed request

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