Skip to content

Add integration test for webhook endpoint returning 404 when webhook ID does not exist #647

Description

@Chucks1093

Summary

The webhook detail, update, and delete endpoints should return 404 when the requested webhook ID does not exist rather than a generic 500. An integration test should call each endpoint with a non-existent ID and confirm the 404 response and error shape.

Scope

  • Call GET, PATCH, and DELETE for a webhook ID that does not exist in the database
  • Assert each returns status 404
  • Assert each response body contains an error field with a descriptive message identifying the resource as not found
  • Assert the message does not leak internal details such as table names or SQL errors

Acceptance Criteria

  • GET non-existent webhook returns 404
  • PATCH non-existent webhook returns 404
  • DELETE non-existent webhook returns 404
  • All three error bodies contain a descriptive error field
  • No internal details in any error message

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