Fix nightly user not found tests (#5034)

Similar to https://github.com/alcionai/corso/pull/4990
Change due to https://github.com/alcionai/corso/pull/5017

<!-- PR description-->

---

#### 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

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [x] 🤖 Supportability/Tests
- [ ] 💻 CI/Deployment
- [ ] 🧹 Tech Debt/Cleanup

#### Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

#### Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [x] 💚 E2E
This commit is contained in:
Abin Simon 2024-01-15 15:59:56 +05:30 committed by GitHub
parent b5343f2114
commit d0d661398c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -222,7 +222,7 @@ func runExchangeBackupUserNotFoundTest(suite *BackupExchangeE2ESuite, category p
assert.Contains(
t,
err.Error(),
"resource owner not found",
"not found",
"error missing user not found")
assert.NotContains(t, err.Error(), "runtime error", "panic happened")

View File

@ -182,7 +182,7 @@ func runGroupsBackupGroupNotFoundTest(suite *BackupGroupsE2ESuite, category stri
assert.Contains(
t,
err.Error(),
"resource owner not found",
"not found",
"error missing user not found")
assert.NotContains(t, err.Error(), "runtime error", "panic happened")

View File

@ -107,7 +107,7 @@ func (suite *NoBackupOneDriveE2ESuite) TestOneDriveBackupCmd_userNotInTenant() {
assert.Contains(
t,
err.Error(),
"resource owner not found",
"not found",
"error missing user not found")
assert.NotContains(t, err.Error(), "runtime error", "panic happened")

View File

@ -87,7 +87,7 @@ func (suite *UsersUnitSuite) TestEvaluateMailboxError() {
},
},
{
name: "mail inbox err - resoruceLocked",
name: "mail inbox err - resourceLocked",
err: core.ErrResourceNotAccessible,
expect: func(t *testing.T, err error) {
assert.ErrorIs(t, err, core.ErrResourceNotAccessible, clues.ToCore(err))