Skip to content

Commit 1b6030e

Browse files
committed
Run all the integration tests - 2024-06-21 PT
1 parent 2e9ac77 commit 1b6030e

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

json-logs/samples/api/admin.conversations.bulkArchive.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bulk_action_id": "",
77
"not_added": [
88
{
9-
"channel_id": "C00000000",
9+
"channel_id": "",
1010
"errors": [
1111
""
1212
]

json-logs/samples/api/files.completeUploadExternal.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@
4949
"thread_ts": "0000000000.000000",
5050
"latest_reply": "0000000000.000000",
5151
"source": ""
52+
},
53+
{
54+
"reply_users": [
55+
""
56+
],
57+
"reply_users_count": 12345,
58+
"reply_count": 12345,
59+
"ts": "0000000000.000000",
60+
"channel_name": "",
61+
"team_id": "T00000000",
62+
"share_user_id": "U00000000",
63+
"source": ""
5264
}
5365
],
5466
"C00000001": [
@@ -65,6 +77,18 @@
6577
"thread_ts": "0000000000.000000",
6678
"latest_reply": "0000000000.000000",
6779
"source": ""
80+
},
81+
{
82+
"reply_users": [
83+
""
84+
],
85+
"reply_users_count": 12345,
86+
"reply_count": 12345,
87+
"ts": "0000000000.000000",
88+
"channel_name": "",
89+
"team_id": "T00000000",
90+
"share_user_id": "U00000000",
91+
"source": ""
6892
}
6993
]
7094
}

slack-api-client/src/test/java/util/sample_json_generation/JsonDataRecorder.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,14 @@ private void scanToNormalizeValues(String path, JsonElement parent, String name,
322322
array.remove(0);
323323
}
324324
array.add(gson.toJsonTree(initProperties(new Bookmark())));
325+
326+
} else if (path.startsWith("/api/admin.conversations.") && name != null && name.equals("not_added")) {
327+
while (!array.isEmpty()) {
328+
array.remove(0);
329+
}
330+
AdminConversationsBulkMoveResponse.NotAdded notAdded = initProperties(new AdminConversationsBulkMoveResponse.NotAdded());
331+
notAdded.setErrors(Arrays.asList(""));
332+
array.add(gson.toJsonTree(notAdded));
325333
} else if (path.equals("/api/admin.conversations.search") && name != null && name.equals("ownership_details")) {
326334
while (!array.isEmpty()) {
327335
array.remove(0);

0 commit comments

Comments
 (0)