Update to /connector/exchange/restore_test.go

Adds test case for edge case that reproduces error found in Issue #2353.
This commit is contained in:
Danny Adams 2023-02-01 10:12:17 -05:00
parent 61d3fc9d53
commit 52572f9e88

View File

@ -175,6 +175,18 @@ func (suite *ExchangeRestoreSuite) TestRestoreExchangeObject() {
return *folder.GetId()
},
},
{
name: "Test Mail: Item Attachment",
bytes: mockconnector.GetMockMessageWithItemAttachment("Item Attachment"),
category: path.EmailCategory,
destination: func(t *testing.T, ctx context.Context) string {
folderName := "TestRestoreMailItemAttachment: " + common.FormatSimpleDateTime(now)
folder, err := suite.ac.Mail().CreateMailFolder(ctx, userID, folderName)
require.NoError(t, err)
return *folder.GetId()
},
},
{
name: "Test Mail: One Large Attachment",
bytes: mockconnector.GetMockMessageWithLargeAttachment("Restore Large Attachment"),