Skip to content

Commit

Permalink
[Webhook] Write Test for Webhook module (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtranq-nashtechglobal committed Sep 16, 2024
1 parent 71607da commit 99f8992
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public class WebhookControllerIT extends AbstractControllerIT {
@BeforeEach
public void init() {
Webhook webhook = new Webhook();
webhook.setPayloadUrl("https://example.com/webhook");
// webhook.setContentType("application/json");
webhook.setPayloadUrl("example.com");
webhook.setContentType("application/json");
Webhook persistedWebhook = webhookRepository.save(webhook);

Event event = new Event();
Expand Down Expand Up @@ -117,7 +117,7 @@ public void test_getWebhook_shouldReturnSuccessfully() {
.get(WEBHOOK_URL + "/{id}")
.then()
.statusCode(HttpStatus.OK.value())
// .body("payloadUrl", equalTo("https://example.com/webhook"))
.body("payloadUrl", equalTo("example.com"))
.body("contentType", equalTo("application/json"))
.log().ifValidationFails();
}
Expand Down

0 comments on commit 99f8992

Please sign in to comment.