Skip to content

Commit

Permalink
Run all the integration tests - 2024-08-20 PT
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Aug 21, 2024
1 parent 84e31c2 commit af96a49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
24 changes: 0 additions & 24 deletions json-logs/samples/api/files.completeUploadExternal.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,6 @@
"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 @@ -77,18 +65,6 @@
"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
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ public void issue1345_filesUploadV2_multiple_no_filename() throws IOException, S

assertThat(response.getError(), is(nullValue()));
// filename defaults to "Uploaded file", which will be converted by slack servers to be lowercase only, contain no special characters but underscores, dots and dashes, etc.
assertThat(response.getFiles().get(0).getName(), is("uploaded_file"));
assertThat(response.getFiles().get(0).getName(), is("Uploaded file"));
// title should be unaffected if it has a value set
assertThat(response.getFiles().get(0).getTitle(), is("issue1345 test"));
}
Expand Down Expand Up @@ -1250,7 +1250,7 @@ public void issue1345_filesUploadV2_multiple_no_filename_no_title() throws IOExc

assertThat(response.getError(), is(nullValue()));
// filename defaults to "Uploaded file", which will be converted by slack servers to be lowercase only, contain no special characters but underscores, dots and dashes, etc.
assertThat(response.getFiles().get(0).getName(), is("uploaded_file"));
assertThat(response.getFiles().get(0).getName(), is("Uploaded file"));
// title defaults to filename, which is (as this is defaulted on the client side) "Uploaded file"
assertThat(response.getFiles().get(0).getTitle(), is("Uploaded file"));
}
Expand Down

0 comments on commit af96a49

Please sign in to comment.