From c47a50a8d7f568d0eb8d78320ccb21c446262eba Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Fri, 14 Jun 2024 09:35:52 +0900 Subject: [PATCH] Run all the integration tests - 2024-06-13 PT --- json-logs/raw/audit/v1/actions.json | 5 ++++- .../src/main/java/com/slack/api/audit/Actions.java | 3 +++ .../test/java/test_with_remote_apis/methods/users_Test.java | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/json-logs/raw/audit/v1/actions.json b/json-logs/raw/audit/v1/actions.json index ccc199a29..30e547742 100644 --- a/json-logs/raw/audit/v1/actions.json +++ b/json-logs/raw/audit/v1/actions.json @@ -301,7 +301,10 @@ "record_channel_archive", "record_channel_unarchive", "channel_converted_to_record_channel", - "record_channel_converted_to_channel" + "record_channel_converted_to_channel", + "external_shared_channel_invite_requested", + "external_shared_channel_invite_request_approved", + "external_shared_channel_invite_request_denied" ], "app": [ "app_installed", diff --git a/slack-api-client/src/main/java/com/slack/api/audit/Actions.java b/slack-api-client/src/main/java/com/slack/api/audit/Actions.java index cad349fed..ff6690016 100644 --- a/slack-api-client/src/main/java/com/slack/api/audit/Actions.java +++ b/slack-api-client/src/main/java/com/slack/api/audit/Actions.java @@ -325,6 +325,9 @@ private Channel() { public static final String record_channel_unarchive = "record_channel_unarchive"; public static final String channel_converted_to_record_channel = "channel_converted_to_record_channel"; public static final String record_channel_converted_to_channel = "record_channel_converted_to_channel"; + public static final String external_shared_channel_invite_requested = "external_shared_channel_invite_requested"; + public static final String external_shared_channel_invite_request_approved = "external_shared_channel_invite_request_approved"; + public static final String external_shared_channel_invite_request_denied = "external_shared_channel_invite_request_denied"; } public static class App { diff --git a/slack-api-client/src/test/java/test_with_remote_apis/methods/users_Test.java b/slack-api-client/src/test/java/test_with_remote_apis/methods/users_Test.java index 88652f4ea..075a935e1 100644 --- a/slack-api-client/src/test/java/test_with_remote_apis/methods/users_Test.java +++ b/slack-api-client/src/test/java/test_with_remote_apis/methods/users_Test.java @@ -38,6 +38,7 @@ public class users_Test { static Slack slack = Slack.getInstance(testConfig.getConfig()); String botToken = System.getenv(Constants.SLACK_SDK_TEST_BOT_TOKEN); + String orgBotToken = System.getenv(Constants.SLACK_SDK_TEST_GRID_ORG_LEVEL_APP_BOT_TOKEN); String userToken = System.getenv(Constants.SLACK_SDK_TEST_USER_TOKEN); String enterpriseGridTeamAdminUserToken = System.getenv( Constants.SLACK_SDK_TEST_GRID_WORKSPACE_ADMIN_USER_TOKEN); @@ -448,7 +449,7 @@ public void discoverableContacts() throws Exception { String userId = System.getenv(SLACK_SDK_TEST_GRID_SHARED_CHANNEL_OTHER_ORG_USER_ID); UsersInfoResponse user = slack.methods(botToken).usersInfo(r -> r.user(userId)); String email = user.getUser().getProfile().getEmail(); - UsersDiscoverableContactsLookupResponse response = slack.methods(botToken) + UsersDiscoverableContactsLookupResponse response = slack.methods(orgBotToken) .usersDiscoverableContactsLookup(r -> r.email(email)); // TODO: valid tests assertThat(response.getError(), is("not_allowed"));