mirror of
https://github.com/immich-app/immich.git
synced 2024-12-23 02:06:15 +02:00
f1c98ac9e6
* soft delete albums when user gets soft deleted * fix wrong intl openapi version * fix tests * ability to restore albums, automatically restore when user restored * (e2e) tests for shared albums via link and with user * (e2e) test deletion of users and linked albums * (e2e) fix share album with owner test * fix: deletedAt * chore: fix restore order * fix: use timezone date column * chore: cleanup e2e tests * (e2e) fix user delete test --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
48 lines
1020 B
TypeScript
48 lines
1020 B
TypeScript
export const errorStub = {
|
|
unauthorized: {
|
|
error: 'Unauthorized',
|
|
statusCode: 401,
|
|
message: 'Authentication required',
|
|
},
|
|
forbidden: {
|
|
error: 'Forbidden',
|
|
statusCode: 403,
|
|
message: expect.any(String),
|
|
},
|
|
wrongPassword: {
|
|
error: 'Bad Request',
|
|
statusCode: 400,
|
|
message: 'Wrong password',
|
|
},
|
|
invalidToken: {
|
|
error: 'Unauthorized',
|
|
statusCode: 401,
|
|
message: 'Invalid user token',
|
|
},
|
|
invalidShareKey: {
|
|
error: 'Unauthorized',
|
|
statusCode: 401,
|
|
message: 'Invalid share key',
|
|
},
|
|
badRequest: {
|
|
error: 'Bad Request',
|
|
statusCode: 400,
|
|
message: expect.any(Array),
|
|
},
|
|
noPermission: {
|
|
error: 'Bad Request',
|
|
statusCode: 400,
|
|
message: expect.stringContaining('Not found or no'),
|
|
},
|
|
incorrectLogin: {
|
|
error: 'Unauthorized',
|
|
statusCode: 401,
|
|
message: 'Incorrect email or password',
|
|
},
|
|
alreadyHasAdmin: {
|
|
error: 'Bad Request',
|
|
statusCode: 400,
|
|
message: 'The server already has an admin',
|
|
},
|
|
};
|