mirror of
https://github.com/immich-app/immich.git
synced 2025-01-28 00:59:18 -05:00
chore: move test assets submodule (#9321)
This commit is contained in:
parent
f10fb0723d
commit
4e7966c8e8
5 changed files with 4 additions and 5 deletions
|
@ -23,7 +23,6 @@ server/node_modules/
|
||||||
server/upload/
|
server/upload/
|
||||||
server/dist/
|
server/dist/
|
||||||
server/www/
|
server/www/
|
||||||
server/test/assets/
|
|
||||||
|
|
||||||
web/node_modules/
|
web/node_modules/
|
||||||
web/coverage/
|
web/coverage/
|
||||||
|
|
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -2,5 +2,5 @@
|
||||||
path = mobile/.isar
|
path = mobile/.isar
|
||||||
url = https://github.com/isar/isar
|
url = https://github.com/isar/isar
|
||||||
[submodule "server/test/assets"]
|
[submodule "server/test/assets"]
|
||||||
path = server/test/assets
|
path = e2e/test-assets
|
||||||
url = https://github.com/immich-app/test-assets
|
url = https://github.com/immich-app/test-assets
|
||||||
|
|
|
@ -16,7 +16,7 @@ x-server-build: &server-common
|
||||||
- IMMICH_METRICS=true
|
- IMMICH_METRICS=true
|
||||||
volumes:
|
volumes:
|
||||||
- upload:/usr/src/app/upload
|
- upload:/usr/src/app/upload
|
||||||
- ../server/test/assets:/data/assets
|
- ./test-assets:/test-assets
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- database
|
- database
|
||||||
|
|
|
@ -56,8 +56,8 @@ const baseUrl = 'http://127.0.0.1:2283';
|
||||||
export const shareUrl = `${baseUrl}/share`;
|
export const shareUrl = `${baseUrl}/share`;
|
||||||
export const app = `${baseUrl}/api`;
|
export const app = `${baseUrl}/api`;
|
||||||
// TODO move test assets into e2e/assets
|
// TODO move test assets into e2e/assets
|
||||||
export const testAssetDir = path.resolve(`./../server/test/assets/`);
|
export const testAssetDir = path.resolve('./test-assets');
|
||||||
export const testAssetDirInternal = '/data/assets';
|
export const testAssetDirInternal = '/test-assets';
|
||||||
export const tempDir = tmpdir();
|
export const tempDir = tmpdir();
|
||||||
export const asBearerAuth = (accessToken: string) => ({ Authorization: `Bearer ${accessToken}` });
|
export const asBearerAuth = (accessToken: string) => ({ Authorization: `Bearer ${accessToken}` });
|
||||||
export const asKeyAuth = (key: string) => ({ 'x-api-key': key });
|
export const asKeyAuth = (key: string) => ({ 'x-api-key': key });
|
||||||
|
|
Loading…
Add table
Reference in a new issue