Skip to content

Commit

Permalink
Run all the integration tests - 2025-02-03 PT
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Feb 4, 2025
1 parent f936ad2 commit df7c874
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 10 deletions.
3 changes: 2 additions & 1 deletion json-logs/raw/audit/v1/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@
"slack_ai_todo_title_generated",
"pref.anomaly_event_response_changed",
"security_settings_export_started",
"security_settings_export_completed"
"security_settings_export_completed",
"slack_ai_message_rewriter"
],
"user": [
"custom_tos_accepted",
Expand Down
3 changes: 2 additions & 1 deletion json-logs/samples/api/conversations.list.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
""
],
"user": [
"W00000000"
"W00000000",
"U00000000"
]
},
"threads_restricted_to": {
Expand Down
24 changes: 24 additions & 0 deletions json-logs/samples/api/files.completeUploadExternal.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@
"thread_ts": "0000000000.000000",
"latest_reply": "0000000000.000000",
"source": ""
},
{
"reply_users": [
""
],
"reply_users_count": 12345,
"reply_count": 12345,
"ts": "0000000000.000000",
"channel_name": "",
"team_id": "T00000000",
"share_user_id": "U00000000",
"source": ""
}
],
"C00000001": [
Expand All @@ -65,6 +77,18 @@
"thread_ts": "0000000000.000000",
"latest_reply": "0000000000.000000",
"source": ""
},
{
"reply_users": [
""
],
"reply_users_count": 12345,
"reply_count": 12345,
"ts": "0000000000.000000",
"channel_name": "",
"team_id": "T00000000",
"share_user_id": "U00000000",
"source": ""
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion json-logs/samples/api/users.conversations.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
"type": ""
},
{
"type": ""
"type": "",
"id": ""
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ private WorkspaceOrOrg() {
public static final String slack_ai_suggested_todo_regenerated = "slack_ai_suggested_todo_regenerated";
public static final String slack_ai_suggested_todo_dismissed = "slack_ai_suggested_todo_dismissed";
public static final String slack_ai_todo_title_generated = "slack_ai_todo_title_generated";
public static final String slack_ai_message_rewriter = "slack_ai_message_rewriter";
public static final String security_settings_export_started = "security_settings_export_started";
public static final String security_settings_export_completed = "security_settings_export_completed";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,13 +779,14 @@ public void scheduleMessages() throws IOException, SlackApiException {
DividerBlock.builder().build(),
SectionBlock.builder().text(PlainTextObject.builder().text("foo").build()).build()
);
ChatScheduleMessageResponse message2 = slack.methods(botToken).chatScheduleMessage(r ->
r.channel(randomChannelId).postAt(postAt)
// the `text` field is required since May 2021
//.text("fallback")
.blocks(blocks));
assertEquals("invalid_arguments", message2.getError());
assertEquals("[ERROR] missing required field: text", message2.getResponseMetadata().getMessages().get(0));
// This request no longer fails starting on Feb 3, 2025
// ChatScheduleMessageResponse message2 = slack.methods(botToken).chatScheduleMessage(r ->
// r.channel(randomChannelId).postAt(postAt)
// // the `text` field is required since May 2021
// //.text("fallback")
// .blocks(blocks));
// assertEquals("invalid_arguments", message2.getError());
// assertEquals("[ERROR] missing required field: text", message2.getResponseMetadata().getMessages().get(0));

ChatScheduleMessageResponse message3 = slack.methods(botToken).chatScheduleMessage(r ->
r.channel(randomChannelId).postAt(postAt)
Expand Down

0 comments on commit df7c874

Please sign in to comment.