From 6b6a26277def2216cc1a859ab9fe312a5f18b2c0 Mon Sep 17 00:00:00 2001 From: olivierapivideo Date: Wed, 2 Oct 2024 16:45:50 +0000 Subject: [PATCH] Fix webhooks tests --- .../video/api/client/api/clients/WebhooksApiTest.java | 9 ++++++--- 1 file changed, 6 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 58fc2aa..a99ad4a 100644 --- a/src/test/java/video/api/client/api/clients/WebhooksApiTest.java +++ b/src/test/java/video/api/client/api/clients/WebhooksApiTest.java @@ -123,7 +123,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); @@ -131,12 +131,15 @@ 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"))) .inOrder(); + } }