Skip to content

Commit

Permalink
Merge pull request #118 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 4d6848d + 6b6a262 commit aa173ab
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,23 @@ 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()).containsExactlyElementsIn(Arrays.asList(
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();

}
}

Expand Down

0 comments on commit aa173ab

Please sign in to comment.