From 52572f9e888f0b4ec65fd2f397ce66c1ae3ed69a Mon Sep 17 00:00:00 2001 From: Danny Adams Date: Wed, 1 Feb 2023 10:12:17 -0500 Subject: [PATCH] Update to /connector/exchange/restore_test.go Adds test case for edge case that reproduces error found in Issue #2353. --- src/internal/connector/exchange/restore_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/internal/connector/exchange/restore_test.go b/src/internal/connector/exchange/restore_test.go index 9c32fd530..4e4e240c7 100644 --- a/src/internal/connector/exchange/restore_test.go +++ b/src/internal/connector/exchange/restore_test.go @@ -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"),