[MM-53245] export/import: add Props to the replies (#29531)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2024-12-18 17:36:17 +01:00
коммит произвёл GitHub
родитель f60694dbef
Коммит bf4d41954a
5 изменённых файлов: 27 добавлений и 4 удалений

Просмотреть файл

@@ -2663,6 +2663,7 @@ func TestImportimportMultiplePostLines(t *testing.T) {
User: &user2.Username,
Message: model.NewPointer("Message reply"),
CreateAt: &replyTime,
Props: &model.StringInterface{"key": "value"},
}},
},
},
@@ -2694,6 +2695,10 @@ func TestImportimportMultiplePostLines(t *testing.T) {
replyBool := reply.Message != *(*data.Post.Replies)[0].Message || reply.CreateAt != *(*data.Post.Replies)[0].CreateAt || reply.UserId != user2.Id
require.False(t, replyBool, "Post properties not as expected")
v := reply.GetProp("key")
require.NotNil(t, v, "Post prop should exist")
require.Equal(t, "value", v, "Post props not as expected")
require.Equal(t, post.Id, reply.RootId, "Unexpected reply RootId")
})