Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 839 Bytes

Webhook.feature.md

File metadata and controls

45 lines (29 loc) · 839 Bytes
exampleContext
webhookReceiver

Demonstrate the Webhook Receiver

As the author of a software component
I want to verify that it sends a webhook request

Background

Given I have a Webhook Receiver

And the endpoint is ${webhookReceiver}

Verify that a webhook request was sent using the REST client

When I POST to ./hook with this JSON

{
  "foo": "bar"
}

Then the response status code should be 202

And the Webhook Receiver hook should be called

And the webhook request body should equal this JSON

{
  "foo": "bar"
}