More rigorous email test with repeat folder names (#2792)

Expand coverage for email tests by creating a layout that has duplicate folder names at different levels of the hierarchy.

---

#### Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No

#### Type of change

- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [x] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🧹 Tech Debt/Cleanup

#### Issue(s)

* closes #1228

#### Test Plan

- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
This commit is contained in:
ashmrtn 2023-03-16 22:31:26 -07:00 committed by GitHub
parent 968f51616f
commit 9fd3b81f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -652,6 +652,36 @@ func (suite *GraphConnectorIntegrationSuite) TestRestoreAndBackup() {
},
},
},
{
pathElements: []string{"Work", "Inbox"},
category: path.EmailCategory,
items: []itemInfo{
{
name: "someencodeditemID4",
data: mockconnector.GetMockMessageWithBodyBytes(
subjectText+"-4",
bodyText+" 4.",
bodyText+" 4.",
),
lookupKey: subjectText + "-4",
},
},
},
{
pathElements: []string{"Work", "Inbox", "Work"},
category: path.EmailCategory,
items: []itemInfo{
{
name: "someencodeditemID5",
data: mockconnector.GetMockMessageWithBodyBytes(
subjectText+"-5",
bodyText+" 5.",
bodyText+" 5.",
),
lookupKey: subjectText + "-5",
},
},
},
},
},
{