From a52ed55925ee1306f87b755904120bcd9dca5406 Mon Sep 17 00:00:00 2001 From: olivierapivideo Date: Wed, 2 Oct 2024 16:41:48 +0000 Subject: [PATCH] Fix webhooks tests --- .../video/api/client/api/clients/WebhooksApiTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/java/video/api/client/api/clients/WebhooksApiTest.java b/src/test/java/video/api/client/api/clients/WebhooksApiTest.java index 8deead5..d83e247 100644 --- a/src/test/java/video/api/client/api/clients/WebhooksApiTest.java +++ b/src/test/java/video/api/client/api/clients/WebhooksApiTest.java @@ -121,7 +121,7 @@ public void responseWithStatus200Test() throws ApiException { assertThat(page.getCurrentPage()).isEqualTo(1); assertThat(page.getPageSize()).isEqualTo(25); assertThat(page.getPagesTotal()).isEqualTo(1); - assertThat(page.getCurrentPageItems()).isEqualTo(11); + assertThat(page.getCurrentPageItems()).isEqualTo(2); assertThat(page.getItems()).hasSize(2); @@ -129,11 +129,13 @@ public void responseWithStatus200Test() throws ApiException { new Webhook().webhookId("webhook_XXXXXXXXXXXXXXX") .createdAt(OffsetDateTime.parse("2021-01-08T14:12:18.000+00:00")) .addEventsItem("video.encoding.quality.completed") - .url("http://clientnotificationserver.com/notif?myquery=query"), + .url("http://clientnotificationserver.com/notif?myquery=query") + .signatureSecret("sig_sec_Abcd12348RLP7VPLi7nYVh"), new Webhook().webhookId("webhook_XXXXXXXXXYYYYYY") .createdAt(OffsetDateTime.parse("2021-01-12T12:12:12.000+00:00")) .addEventsItem("video.encoding.quality.completed") - .url("http://clientnotificationserver.com/notif?myquery=query2")); + .url("http://clientnotificationserver.com/notif?myquery=query2") + .signatureSecret("sig_sec_Abcd12358RLP7VPLi7nYVy")); } }