From 99f8992a27cce5afa441c0efd3c06ea277f5597d Mon Sep 17 00:00:00 2001 From: "minh.tranquang" Date: Tue, 17 Sep 2024 00:38:04 +0700 Subject: [PATCH] [Webhook] Write Test for Webhook module (#969) --- .../com/yas/webhook/controller/WebhookControllerIT.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webhook/src/it/java/com/yas/webhook/controller/WebhookControllerIT.java b/webhook/src/it/java/com/yas/webhook/controller/WebhookControllerIT.java index b9361d3270..d8eef1a885 100644 --- a/webhook/src/it/java/com/yas/webhook/controller/WebhookControllerIT.java +++ b/webhook/src/it/java/com/yas/webhook/controller/WebhookControllerIT.java @@ -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(); @@ -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(); }