Skip to content

Commit

Permalink
Merge pull request #124 from apivideo/fix-webhooks-tests
Browse files Browse the repository at this point in the history
Fix webhooks tests
  • Loading branch information
bot-api-video authored Oct 8, 2024
2 parents ab29fb4 + a52ed55 commit 92c63ed
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,21 @@ 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);

assertThat(page.getItems()).containsExactlyInAnyOrder(
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"));
}
}

Expand Down

0 comments on commit 92c63ed

Please sign in to comment.