Skip to content

Commit

Permalink
Run all the integration tests - 2024-06-13 PT
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jun 14, 2024
1 parent 005ba64 commit c47a50a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion json-logs/raw/audit/v1/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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"));
Expand Down

0 comments on commit c47a50a

Please sign in to comment.