File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
main/java/com/slack/api/audit
test/java/test_with_remote_apis/methods Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 301301 " record_channel_archive" ,
302302 " record_channel_unarchive" ,
303303 " channel_converted_to_record_channel" ,
304- " record_channel_converted_to_channel"
304+ " record_channel_converted_to_channel" ,
305+ " external_shared_channel_invite_requested" ,
306+ " external_shared_channel_invite_request_approved" ,
307+ " external_shared_channel_invite_request_denied"
305308 ],
306309 "app" : [
307310 " app_installed" ,
Original file line number Diff line number Diff line change @@ -325,6 +325,9 @@ private Channel() {
325325 public static final String record_channel_unarchive = "record_channel_unarchive" ;
326326 public static final String channel_converted_to_record_channel = "channel_converted_to_record_channel" ;
327327 public static final String record_channel_converted_to_channel = "record_channel_converted_to_channel" ;
328+ public static final String external_shared_channel_invite_requested = "external_shared_channel_invite_requested" ;
329+ public static final String external_shared_channel_invite_request_approved = "external_shared_channel_invite_request_approved" ;
330+ public static final String external_shared_channel_invite_request_denied = "external_shared_channel_invite_request_denied" ;
328331 }
329332
330333 public static class App {
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ public class users_Test {
3838 static Slack slack = Slack .getInstance (testConfig .getConfig ());
3939
4040 String botToken = System .getenv (Constants .SLACK_SDK_TEST_BOT_TOKEN );
41+ String orgBotToken = System .getenv (Constants .SLACK_SDK_TEST_GRID_ORG_LEVEL_APP_BOT_TOKEN );
4142 String userToken = System .getenv (Constants .SLACK_SDK_TEST_USER_TOKEN );
4243 String enterpriseGridTeamAdminUserToken = System .getenv (
4344 Constants .SLACK_SDK_TEST_GRID_WORKSPACE_ADMIN_USER_TOKEN );
@@ -448,7 +449,7 @@ public void discoverableContacts() throws Exception {
448449 String userId = System .getenv (SLACK_SDK_TEST_GRID_SHARED_CHANNEL_OTHER_ORG_USER_ID );
449450 UsersInfoResponse user = slack .methods (botToken ).usersInfo (r -> r .user (userId ));
450451 String email = user .getUser ().getProfile ().getEmail ();
451- UsersDiscoverableContactsLookupResponse response = slack .methods (botToken )
452+ UsersDiscoverableContactsLookupResponse response = slack .methods (orgBotToken )
452453 .usersDiscoverableContactsLookup (r -> r .email (email ));
453454 // TODO: valid tests
454455 assertThat (response .getError (), is ("not_allowed" ));
You can’t perform that action at this time.
0 commit comments