Skip to content

Commit 859ea82

Browse files
committed
Run all the integration tests - 2021-12-15 PT
1 parent e6aac88 commit 859ea82

File tree

3 files changed

+142
-26
lines changed

3 files changed

+142
-26
lines changed

json-logs/samples/api/chat.update.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -152,31 +152,44 @@
152152
},
153153
"files": [
154154
{
155-
"id": "",
155+
"id": "F00000000",
156156
"created": 12345,
157157
"timestamp": 12345,
158158
"name": "",
159159
"title": "",
160-
"subject": "",
161160
"mimetype": "",
162161
"filetype": "",
163162
"pretty_type": "",
164-
"user": "",
165-
"mode": "",
163+
"user": "W00000000",
166164
"editable": false,
165+
"size": 12345,
166+
"mode": "",
167+
"is_external": false,
168+
"external_type": "",
169+
"is_public": false,
170+
"public_url_shared": false,
171+
"display_as_bot": false,
172+
"username": "",
173+
"url_private": "https://www.example.com/",
174+
"url_private_download": "https://www.example.com/",
175+
"permalink": "https://www.example.com/",
176+
"permalink_public": "https://www.example.com/",
177+
"edit_link": "https://www.example.com/",
178+
"preview": "",
179+
"preview_highlight": "",
180+
"lines": 12345,
181+
"lines_more": 12345,
182+
"preview_is_truncated": false,
183+
"is_starred": false,
184+
"has_rich_preview": false,
185+
"subject": "",
167186
"non_owner_editable": false,
168187
"editor": "",
169188
"last_editor": "",
170189
"updated": 12345,
171190
"original_attachment_count": 12345,
172-
"is_external": false,
173-
"external_type": "",
174191
"external_id": "",
175192
"external_url": "",
176-
"username": "",
177-
"size": 12345,
178-
"url_private": "",
179-
"url_private_download": "",
180193
"app_id": "",
181194
"app_name": "",
182195
"thumb_64": "",
@@ -228,23 +241,11 @@
228241
"deanimate": "",
229242
"deanimate_gif": "",
230243
"pjpeg": "",
231-
"permalink": "",
232-
"permalink_public": "",
233-
"edit_link": "",
234-
"has_rich_preview": false,
235244
"media_display_type": "",
236-
"preview_is_truncated": false,
237-
"preview": "",
238-
"preview_highlight": "",
239245
"plain_text": "",
240246
"preview_plain_text": "",
241247
"has_more": false,
242248
"sent_to_self": false,
243-
"lines": 12345,
244-
"lines_more": 12345,
245-
"is_public": false,
246-
"public_url_shared": false,
247-
"display_as_bot": false,
248249
"shares": {},
249250
"channel_actions_ts": "",
250251
"channel_actions_count": 12345,
@@ -266,7 +267,6 @@
266267
"is_intro": false
267268
},
268269
"num_stars": 12345,
269-
"is_starred": false,
270270
"comments_count": 12345
271271
}
272272
],

json-logs/samples/api/conversations.history.json

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,118 @@
187187
"ts": "0000000000.000000"
188188
},
189189
"blocks": [
190+
{
191+
"type": "",
192+
"elements": [
193+
{
194+
"type": "",
195+
"text": {
196+
"type": "",
197+
"text": "",
198+
"emoji": false
199+
},
200+
"action_id": "",
201+
"url": "",
202+
"value": "",
203+
"style": "",
204+
"confirm": {
205+
"title": {
206+
"type": "",
207+
"text": "",
208+
"emoji": false
209+
},
210+
"text": {
211+
"type": "",
212+
"text": "",
213+
"emoji": false
214+
},
215+
"confirm": {
216+
"type": "",
217+
"text": "",
218+
"emoji": false
219+
},
220+
"deny": {
221+
"type": "",
222+
"text": "",
223+
"emoji": false
224+
},
225+
"style": ""
226+
},
227+
"placeholder": {
228+
"type": "",
229+
"text": "",
230+
"emoji": false
231+
},
232+
"initial_channel": "",
233+
"response_url_enabled": false,
234+
"focus_on_load": false,
235+
"initial_conversation": "",
236+
"default_to_current_conversation": false,
237+
"filter": {
238+
"exclude_external_shared_channels": false,
239+
"exclude_bot_users": false
240+
},
241+
"initial_date": "",
242+
"initial_time": "",
243+
"initial_option": {
244+
"text": {
245+
"type": "",
246+
"text": "",
247+
"emoji": false
248+
},
249+
"value": "",
250+
"description": {
251+
"type": "",
252+
"text": "",
253+
"emoji": false
254+
},
255+
"url": ""
256+
},
257+
"min_query_length": 12345,
258+
"image_url": "",
259+
"alt_text": "",
260+
"fallback": "",
261+
"image_width": 12345,
262+
"image_height": 12345,
263+
"image_bytes": 12345,
264+
"initial_user": ""
265+
}
266+
],
267+
"block_id": "",
268+
"fallback": "",
269+
"image_url": "",
270+
"image_width": 12345,
271+
"image_height": 12345,
272+
"image_bytes": 12345,
273+
"alt_text": "",
274+
"title": {
275+
"type": "",
276+
"text": "",
277+
"emoji": false
278+
},
279+
"text": {
280+
"type": "",
281+
"text": "",
282+
"emoji": false
283+
},
284+
"fields": [
285+
{
286+
"type": "",
287+
"text": "",
288+
"emoji": false,
289+
"verbatim": false
290+
}
291+
],
292+
"accessory": {
293+
"type": "",
294+
"image_url": "",
295+
"alt_text": "",
296+
"fallback": "",
297+
"image_width": 12345,
298+
"image_height": 12345,
299+
"image_bytes": 12345
300+
}
301+
},
190302
{
191303
"type": "",
192304
"block_id": "",

slack-api-client/src/test/java/test_with_remote_apis/methods/chat_Test.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -878,9 +878,13 @@ public void issue_785() throws Exception {
878878
ConversationsHistoryResponse history = slack.methods(botToken).conversationsHistory(r -> r
879879
.channel(randomChannelId).limit(1));
880880
assertThat(history.getError(), is(nullValue()));
881-
Attachment.VideoHtml videoHtml = history.getMessages().get(0).getAttachments().get(0).getVideoHtml();
882-
assertThat(videoHtml.getHtml(), is("<video muted loop controls autoplay preload=\"auto\" playsinline height=\"540\" width=\"960\" poster=\"https://i.imgur.com/brgYmPXh.jpg\" src=\"https://i.imgur.com/brgYmPX.mp4\"></video>"));
883-
assertThat(videoHtml.getSource(), is(nullValue()));
881+
List<Attachment> attachments = history.getMessages().get(0).getAttachments();
882+
// the attachments can be null
883+
if (attachments != null && attachments.get(0) != null) {
884+
Attachment.VideoHtml videoHtml = attachments.get(0).getVideoHtml();
885+
assertThat(videoHtml.getHtml(), is("<video muted loop controls autoplay preload=\"auto\" playsinline height=\"540\" width=\"960\" poster=\"https://i.imgur.com/brgYmPXh.jpg\" src=\"https://i.imgur.com/brgYmPX.mp4\"></video>"));
886+
assertThat(videoHtml.getSource(), is(nullValue()));
887+
}
884888
} finally {
885889
if (ts != null) {
886890
final String _ts = ts;

0 commit comments

Comments
 (0)