Skip to content

Add integration test for trade webhook firing only for registered event types #461

Description

@Chucks1093

Summary

A creator who registers a webhook with events: ['buy'] should not receive a callback when a sell event occurs. An integration test should confirm the event type filter is enforced correctly at delivery time.

Scope

  • Register a webhook with events: ['buy'] only
  • Simulate a sell trade event through the indexer
  • Assert the webhook callback was not called
  • Simulate a buy event and assert the callback was called

Acceptance Criteria

  • Sell event does not trigger a buy-only webhook
  • Buy event does trigger a buy-only webhook
  • Same test repeated in reverse for a sell-only webhook

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