mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Stop reporting to Sentry invalid credentials on workflow activation (no-changelog) (#9555)
This commit is contained in:
@@ -18,12 +18,15 @@ describe('WorkflowActivationError', () => {
|
||||
expect(secondError.level).toBe('error');
|
||||
});
|
||||
|
||||
test.each(['ETIMEDOUT', 'ECONNREFUSED', 'EAUTH', 'Temporary authentication failure'])(
|
||||
'should set `level` to `warning` for `%s`',
|
||||
(code) => {
|
||||
const error = new WorkflowActivationError(code, { cause });
|
||||
test.each([
|
||||
'ETIMEDOUT',
|
||||
'ECONNREFUSED',
|
||||
'EAUTH',
|
||||
'Temporary authentication failure',
|
||||
'Invalid credentials',
|
||||
])('should set `level` to `warning` for `%s`', (code) => {
|
||||
const error = new WorkflowActivationError(code, { cause });
|
||||
|
||||
expect(error.level).toBe('warning');
|
||||
},
|
||||
);
|
||||
expect(error.level).toBe('warning');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user