Skip to content

Commit 586f8fe

Browse files
committed
Run all the integration tests - 2022-10-05 PT
1 parent a87ae51 commit 586f8fe

File tree

2 files changed

+205
-40
lines changed

2 files changed

+205
-40
lines changed

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

Lines changed: 199 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,46 @@
5454
"blocks": [
5555
{
5656
"type": "",
57+
"block_id": "",
5758
"elements": [
5859
{
5960
"type": "",
61+
"elements": [
62+
{
63+
"type": "",
64+
"text": ""
65+
},
66+
{
67+
"type": "",
68+
"elements": [
69+
{
70+
"type": "",
71+
"range": "",
72+
"text": "",
73+
"style": {
74+
"bold": false,
75+
"italic": false,
76+
"strike": false,
77+
"code": false
78+
},
79+
"channel_id": "",
80+
"value": "",
81+
"timestamp": "",
82+
"url": "",
83+
"team_id": "",
84+
"user_id": "",
85+
"usergroup_id": "",
86+
"name": "",
87+
"skin_tone": 12345,
88+
"unicode": ""
89+
}
90+
],
91+
"style": "",
92+
"indent": 12345,
93+
"offset": 12345,
94+
"border": 12345
95+
}
96+
],
6097
"text": {
6198
"type": "",
6299
"text": "",
@@ -199,6 +236,166 @@
199236
"initial_users": [
200237
""
201238
],
239+
"indent": 12345,
240+
"offset": 12345,
241+
"border": 12345
242+
},
243+
{
244+
"type": "",
245+
"text": {
246+
"type": "",
247+
"text": "",
248+
"emoji": false
249+
},
250+
"action_id": "",
251+
"url": "",
252+
"value": "",
253+
"style": "",
254+
"confirm": {
255+
"title": {
256+
"type": "",
257+
"text": "",
258+
"emoji": false
259+
},
260+
"text": {
261+
"type": "",
262+
"text": "",
263+
"emoji": false
264+
},
265+
"confirm": {
266+
"type": "",
267+
"text": "",
268+
"emoji": false
269+
},
270+
"deny": {
271+
"type": "",
272+
"text": "",
273+
"emoji": false
274+
},
275+
"style": ""
276+
},
277+
"accessibility_label": "",
278+
"options": [
279+
{
280+
"text": {
281+
"type": "",
282+
"text": "",
283+
"emoji": false
284+
},
285+
"value": "",
286+
"description": {
287+
"type": "",
288+
"text": "",
289+
"emoji": false
290+
},
291+
"url": ""
292+
}
293+
],
294+
"initial_options": [
295+
{
296+
"text": {
297+
"type": "",
298+
"text": "",
299+
"emoji": false
300+
},
301+
"value": "",
302+
"description": {
303+
"type": "",
304+
"text": "",
305+
"emoji": false
306+
},
307+
"url": ""
308+
}
309+
],
310+
"focus_on_load": false,
311+
"initial_option": {
312+
"text": {
313+
"type": "",
314+
"text": "",
315+
"emoji": false
316+
},
317+
"value": "",
318+
"description": {
319+
"type": "",
320+
"text": "",
321+
"emoji": false
322+
},
323+
"url": ""
324+
},
325+
"placeholder": {
326+
"type": "",
327+
"text": "",
328+
"emoji": false
329+
},
330+
"initial_channel": "",
331+
"response_url_enabled": false,
332+
"initial_channels": [
333+
""
334+
],
335+
"max_selected_items": 12345,
336+
"initial_conversation": "",
337+
"default_to_current_conversation": false,
338+
"filter": {
339+
"include": [
340+
""
341+
],
342+
"exclude_external_shared_channels": false,
343+
"exclude_bot_users": false
344+
},
345+
"initial_conversations": [
346+
""
347+
],
348+
"initial_date": "",
349+
"initial_time": "",
350+
"timezone": "",
351+
"min_query_length": 12345,
352+
"image_url": "",
353+
"alt_text": "",
354+
"fallback": "",
355+
"image_width": 12345,
356+
"image_height": 12345,
357+
"image_bytes": 12345,
358+
"option_groups": [
359+
{
360+
"label": {
361+
"type": "",
362+
"text": "",
363+
"emoji": false
364+
},
365+
"options": [
366+
{
367+
"text": {
368+
"type": "",
369+
"text": "",
370+
"emoji": false
371+
},
372+
"value": "",
373+
"description": {
374+
"type": "",
375+
"text": "",
376+
"emoji": false
377+
},
378+
"url": ""
379+
}
380+
]
381+
}
382+
],
383+
"initial_user": "",
384+
"initial_users": [
385+
""
386+
]
387+
},
388+
{
389+
"type": "",
390+
"image_url": "",
391+
"alt_text": "",
392+
"fallback": "",
393+
"image_width": 12345,
394+
"image_height": 12345,
395+
"image_bytes": 12345
396+
},
397+
{
398+
"type": "",
202399
"elements": [
203400
{
204401
"type": "",
@@ -231,12 +428,12 @@
231428
"border": 12345
232429
}
233430
],
431+
"style": "",
234432
"indent": 12345,
235433
"offset": 12345,
236434
"border": 12345
237435
}
238436
],
239-
"block_id": "",
240437
"call_id": "",
241438
"api_decoration_available": false,
242439
"call": {
@@ -1135,42 +1332,7 @@
11351332
"initial_user": "",
11361333
"initial_users": [
11371334
""
1138-
],
1139-
"elements": [
1140-
{
1141-
"type": "",
1142-
"elements": [
1143-
{
1144-
"type": "",
1145-
"range": "",
1146-
"text": "",
1147-
"style": {
1148-
"bold": false,
1149-
"italic": false,
1150-
"strike": false,
1151-
"code": false
1152-
},
1153-
"channel_id": "",
1154-
"value": "",
1155-
"timestamp": "",
1156-
"url": "",
1157-
"team_id": "",
1158-
"user_id": "",
1159-
"usergroup_id": "",
1160-
"name": "",
1161-
"skin_tone": 12345,
1162-
"unicode": ""
1163-
}
1164-
],
1165-
"style": "",
1166-
"indent": 12345,
1167-
"offset": 12345,
1168-
"border": 12345
1169-
}
1170-
],
1171-
"indent": 12345,
1172-
"offset": 12345,
1173-
"border": 12345
1335+
]
11741336
},
11751337
{
11761338
"type": "",

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public void createLongTextFile() throws IOException, SlackApiException {
283283
}
284284

285285
@Test
286-
public void createLongTextFile_v2() throws IOException, SlackApiException {
286+
public void createLongTextFile_v2() throws Exception {
287287
File file = new File("src/test/resources/sample_long.txt");
288288
com.slack.api.model.File fileObj;
289289
{
@@ -295,15 +295,18 @@ public void createLongTextFile_v2() throws IOException, SlackApiException {
295295
.title("file title"));
296296
assertThat(response.getError(), is(nullValue()));
297297
assertThat(response.isOk(), is(true));
298-
fileObj = response.getFile();
298+
299+
Thread.sleep(3000L);
300+
301+
fileObj = slack.methods(botToken).filesInfo(r -> r.file(response.getFile().getId())).getFile();
299302

300303
assertThat(fileObj.getTitle(), is("file title"));
301304
assertThat(fileObj.getName(), is("sample.txt"));
302305
assertThat(fileObj.getMimetype(), is(anyOf(is(""), is("text/plain")))); // only "text/plain" for legacy
303306
assertThat(fileObj.getFiletype(), is(anyOf(is(""), is("text")))); // only "text" for legacy
304307
assertThat(fileObj.getPrettyType(), is(anyOf(is(""), is("Plain Text")))); // only "Plain Text" for legacy
305308
assertThat(fileObj.getSize(), is(19648));
306-
// assertThat(fileObj.isEditable(), is(true));
309+
assertThat(fileObj.isEditable(), is(true));
307310

308311
assertThat(fileObj.isPreviewTruncated(), is(true));
309312
assertThat(fileObj.getLines(), is(182));

0 commit comments

Comments
 (0)