[web] enable mongo notablescan in CI (#29501)
* [monorepo] record ERROR/FATAL log messages in junit report * [web] put SaaS specific code behind feature flag * [web] use split test cache for getting user assignments The unit tests needed updating as they did not replicate any of the mongo filtering. The acceptance tests cover this logic. * [web] make better use of existing indexes * [web] avoid col-scan in tests of notifications module * [web] remove cleanup of empty feedbacks collection * [web] add assertion for reason of rejected request in launchpad test * [web] add missing indexes * [web] enable mongo notablescan * [web] make emailNotifications tests compatible with notablescan GitOrigin-RevId: b888f2feeb3a0e915f068ae1c4ea23ec17821221
This commit is contained in:
@@ -99,10 +99,6 @@ describe('UserDeleter', function () {
|
||||
promises: { hooks: { fire: sinon.stub().resolves() } },
|
||||
}
|
||||
|
||||
ctx.Feedback = {
|
||||
deleteMany: sinon.stub().returns({ exec: sinon.stub().resolves() }),
|
||||
}
|
||||
|
||||
ctx.OnboardingDataCollectionManager = {
|
||||
deleteOnboardingDataCollection: sinon.stub().resolves(),
|
||||
}
|
||||
@@ -127,10 +123,6 @@ describe('UserDeleter', function () {
|
||||
DeletedUser,
|
||||
}))
|
||||
|
||||
vi.doMock('../../../../app/src/models/Feedback', () => ({
|
||||
Feedback: ctx.Feedback,
|
||||
}))
|
||||
|
||||
vi.doMock(
|
||||
'../../../../app/src/Features/Newsletter/NewsletterManager',
|
||||
() => ({
|
||||
@@ -788,13 +780,6 @@ describe('UserDeleter', function () {
|
||||
)
|
||||
})
|
||||
|
||||
it('should delete Feeback', async function (ctx) {
|
||||
await ctx.UserDeleter.promises.expireDeletedUser(ctx.userId)
|
||||
expect(ctx.Feedback.deleteMany).to.have.been.calledWith({
|
||||
userId: ctx.userId,
|
||||
})
|
||||
})
|
||||
|
||||
describe('when called as a callback', function () {
|
||||
it('should expire the user', async function (ctx) {
|
||||
await new Promise(resolve => {
|
||||
|
||||
Reference in New Issue
Block a user