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:
parent
b5343f2114
commit
d0d661398c
@ -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")
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user