Skip to content

Commit

Permalink
Run all the integration tests - 2024-06-21 PT
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jun 24, 2024
1 parent 2e9ac77 commit 1b6030e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion json-logs/samples/api/admin.conversations.bulkArchive.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bulk_action_id": "",
"not_added": [
{
"channel_id": "C00000000",
"channel_id": "",
"errors": [
""
]
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
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,14 @@ private void scanToNormalizeValues(String path, JsonElement parent, String name,
array.remove(0);
}
array.add(gson.toJsonTree(initProperties(new Bookmark())));

} else if (path.startsWith("/api/admin.conversations.") && name != null && name.equals("not_added")) {
while (!array.isEmpty()) {
array.remove(0);
}
AdminConversationsBulkMoveResponse.NotAdded notAdded = initProperties(new AdminConversationsBulkMoveResponse.NotAdded());
notAdded.setErrors(Arrays.asList(""));
array.add(gson.toJsonTree(notAdded));
} else if (path.equals("/api/admin.conversations.search") && name != null && name.equals("ownership_details")) {
while (!array.isEmpty()) {
array.remove(0);
Expand Down

0 comments on commit 1b6030e

Please sign in to comment.