-
Notifications
You must be signed in to change notification settings - Fork 229
feat: add webapi response changes as of 2025-11-12 #1532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
0e2e266
da2cbdf
36ac702
a184a91
69b6977
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,7 @@ | |
| "response_metadata": { | ||
| "messages": [ | ||
| "" | ||
| ] | ||
| ], | ||
| "warnings": [] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,6 +102,9 @@ | |
| "display": "" | ||
| } | ||
| ] | ||
| }, | ||
| "urn:scim:schemas:extension:slack:profile:1.0": { | ||
| "startDate": "" | ||
| } | ||
| } | ||
| ], | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,7 +66,7 @@ void loadRandomChannelId() throws IOException, SlackApiException { | |
| void loadGeneralChannelId() throws IOException, SlackApiException { | ||
| if (generalChannelId == null) { | ||
| ConversationsListResponse channelsListResponse = | ||
| slack.methods().conversationsList(r -> r.token(botToken).excludeArchived(true).limit(100)); | ||
| slack.methods().conversationsList(r -> r.token(botToken).excludeArchived(true).limit(200)); | ||
| assertThat(channelsListResponse.getError(), is(nullValue())); | ||
| for (Conversation channel : channelsListResponse.getChannels()) { | ||
| if (channel.getName().equals("general")) { | ||
|
|
@@ -136,6 +136,7 @@ public void describe_ShowFilesHiddenByLimit() throws IOException, SlackApiExcept | |
| } | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📠 note: Today is the day
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great point 💯 I think this should be a teak for when we remove |
||
| @Test | ||
| public void createTextFileAndComments() throws IOException, SlackApiException { | ||
| File file = new File("src/test/resources/sample.txt"); | ||
|
|
@@ -227,6 +228,7 @@ public void createTextFileAndComments() throws IOException, SlackApiException { | |
| } | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void createLongTextFile() throws IOException, SlackApiException { | ||
| File file = new File("src/test/resources/sample_long.txt"); | ||
|
|
@@ -430,6 +432,7 @@ public void createLongTextFile_v2_full_args() throws Exception { | |
| } | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void createImageFileAndComments() throws IOException, SlackApiException { | ||
| File file = new File("src/test/resources/seratch.jpg"); | ||
|
|
@@ -529,6 +532,7 @@ public void createImageFileAndComments() throws IOException, SlackApiException { | |
| } | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void createFileForAThread() throws IOException, SlackApiException { | ||
| TestChannelGenerator channelGenerator = new TestChannelGenerator(testConfig, userToken); | ||
|
|
@@ -629,6 +633,7 @@ public void createFileForAThread_v2() throws IOException, SlackApiException { | |
| } | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void issue523_text() throws IOException, SlackApiException { | ||
| MethodsClient slackMethods = slack.methods(userToken); | ||
|
|
@@ -638,6 +643,7 @@ public void issue523_text() throws IOException, SlackApiException { | |
| assertThat(response.getError(), is(nullValue())); | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void issue523_image() throws IOException, SlackApiException { | ||
| MethodsClient slackMethods = slack.methods(userToken); | ||
|
|
@@ -647,6 +653,7 @@ public void issue523_image() throws IOException, SlackApiException { | |
| assertThat(response.getError(), is(nullValue())); | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void issue523_text_no_filename() throws IOException, SlackApiException { | ||
| MethodsClient slackMethods = slack.methods(userToken); | ||
|
|
@@ -667,6 +674,7 @@ public void issue523_text_no_filename_v2() throws IOException, SlackApiException | |
| assertThat(response.getError(), is(nullValue())); | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void issue523_image_no_filename() throws IOException, SlackApiException { | ||
| MethodsClient slackMethods = slack.methods(userToken); | ||
|
|
@@ -677,6 +685,7 @@ public void issue523_image_no_filename() throws IOException, SlackApiException { | |
| assertThat(response.getError(), is(nullValue())); | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void uploadAndPostMessage() throws IOException, SlackApiException, InterruptedException { | ||
| MethodsClient slackMethods = slack.methods(botToken); | ||
|
|
@@ -763,6 +772,7 @@ public void uploadAndPostMessage() throws IOException, SlackApiException, Interr | |
| assertThat(uploadAndSharedInTwoTypesOfChannels.getFile().getShares().getPrivateChannels(), is(notNullValue())); | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void uploadInThreads() throws Exception { | ||
| MethodsClient slackMethods = slack.methods(userToken); | ||
|
|
@@ -851,6 +861,7 @@ public void uploadInThreads_v2() throws Exception { | |
| assertThat(replies.getMessages().get(1).getFile(), is(nullValue())); | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void issue824_gif_files() throws IOException, SlackApiException { | ||
| loadRandomChannel(); | ||
|
|
@@ -908,6 +919,7 @@ public void issue1314_non_image_files_with_v2() throws IOException, SlackApiExce | |
| assertThat(upload2.getError(), is(nullValue())); | ||
| } | ||
|
|
||
| @Ignore // "method_deprecated" 2025-11-12 https://docs.slack.dev/changelog/2025/03/17/files-upload-extension/ | ||
| @Test | ||
| public void fileLinks() throws Exception { | ||
| loadRandomChannelId(); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏷️ note: Perhaps we revert this? But I changed it because I changed the
#generalchannel of a test workspace I use.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is in a test we can change it in the future if we ever need to, so I think we can leave it in 💯