mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
ci: Fix tests on postgres (no-changelog)
This commit is contained in:
parent
89f44021b9
commit
eeb49e9375
|
@ -157,7 +157,7 @@ describe('GET /resolve-password-token', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should fail if user is not found', async () => {
|
test('should fail if user is not found', async () => {
|
||||||
const token = jwtService.signData({ sub: 'test' });
|
const token = jwtService.signData({ sub: uuid() });
|
||||||
|
|
||||||
const response = await testServer.authlessAgent
|
const response = await testServer.authlessAgent
|
||||||
.get('/resolve-password-token')
|
.get('/resolve-password-token')
|
||||||
|
|
|
@ -82,12 +82,10 @@ describe('POST /credentials', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should fail with invalid inputs', async () => {
|
test('should fail with invalid inputs', async () => {
|
||||||
await Promise.all(
|
for (const invalidPayload of INVALID_PAYLOADS) {
|
||||||
INVALID_PAYLOADS.map(async (invalidPayload) => {
|
const response = await authOwnerAgent.post('/credentials').send(invalidPayload);
|
||||||
const response = await authOwnerAgent.post('/credentials').send(invalidPayload);
|
expect(response.statusCode === 400 || response.statusCode === 415).toBe(true);
|
||||||
expect(response.statusCode === 400 || response.statusCode === 415).toBe(true);
|
}
|
||||||
}),
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should fail with missing encryption key', async () => {
|
test('should fail with missing encryption key', async () => {
|
||||||
|
|
Loading…
Reference in a new issue