mirror of
https://github.com/valitydev/hooker.git
synced 2024-11-06 00:05:17 +00:00
parent
500f734626
commit
c1d4f4f07e
@ -31,7 +31,7 @@ public class WebhookMessageBuilder {
|
||||
.setWebhookId(webhookMessageModel.getHookId())
|
||||
.setSourceId(sourceId)
|
||||
.setEventId(event.getEventID())
|
||||
.setParentEventId(-1) //TODO REMOVE
|
||||
.setParentEventId(parentId)
|
||||
.setCreatedAt(TypeUtil.temporalToString(Instant.now()))
|
||||
.setUrl(webhookMessageModel.getUrl())
|
||||
.setContentType(ContentType.APPLICATION_JSON.getMimeType())
|
||||
|
@ -50,7 +50,7 @@ public class WebhookMessageBuilderTest {
|
||||
long parentId = 1L;
|
||||
WebhookMessage webhookMessage = builder.build(webhookMessageModel, event, sourceId, parentId);
|
||||
assertEquals(sourceId, webhookMessage.getSourceId());
|
||||
//assertEquals(parentId, webhookMessage.getParentEventId());
|
||||
assertEquals(parentId, webhookMessage.getParentEventId());
|
||||
assertEquals(webhookMessageModel.getHookId(), webhookMessage.getWebhookId());
|
||||
assertEquals(event.getEventID().longValue(), webhookMessage.getEventId());
|
||||
assertNotNull(webhookMessage.getAdditionalHeaders().get("Content-Signature"));
|
||||
|
Loading…
Reference in New Issue
Block a user