Skip to content

Commit 92c63ed

Browse files
Merge pull request #124 from apivideo/fix-webhooks-tests
Fix webhooks tests
2 parents ab29fb4 + a52ed55 commit 92c63ed

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/test/java/video/api/client/api/clients/WebhooksApiTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,21 @@ public void responseWithStatus200Test() throws ApiException {
121121
assertThat(page.getCurrentPage()).isEqualTo(1);
122122
assertThat(page.getPageSize()).isEqualTo(25);
123123
assertThat(page.getPagesTotal()).isEqualTo(1);
124-
assertThat(page.getCurrentPageItems()).isEqualTo(11);
124+
assertThat(page.getCurrentPageItems()).isEqualTo(2);
125125

126126
assertThat(page.getItems()).hasSize(2);
127127

128128
assertThat(page.getItems()).containsExactlyInAnyOrder(
129129
new Webhook().webhookId("webhook_XXXXXXXXXXXXXXX")
130130
.createdAt(OffsetDateTime.parse("2021-01-08T14:12:18.000+00:00"))
131131
.addEventsItem("video.encoding.quality.completed")
132-
.url("http://clientnotificationserver.com/notif?myquery=query"),
132+
.url("http://clientnotificationserver.com/notif?myquery=query")
133+
.signatureSecret("sig_sec_Abcd12348RLP7VPLi7nYVh"),
133134
new Webhook().webhookId("webhook_XXXXXXXXXYYYYYY")
134135
.createdAt(OffsetDateTime.parse("2021-01-12T12:12:12.000+00:00"))
135136
.addEventsItem("video.encoding.quality.completed")
136-
.url("http://clientnotificationserver.com/notif?myquery=query2"));
137+
.url("http://clientnotificationserver.com/notif?myquery=query2")
138+
.signatureSecret("sig_sec_Abcd12358RLP7VPLi7nYVy"));
137139
}
138140
}
139141

0 commit comments

Comments
 (0)