Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
test(backend): define auth env vars in test script
johaven8135a518dcdf
diff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 23c026fc..ce1745c3 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -27,8 +27,4 @@ jobs:sed -i "s|dataPath: /home/|dataPath: /tmp/|" environment/environment.yaml- name: Run unit tests- env:- SYNCIN_AUTH_ENCRYPTIONKEY: ci-encryption-key- SYNCIN_AUTH_TOKEN_ACCESS_SECRET: ci-access-secret- SYNCIN_AUTH_TOKEN_REFRESH_SECRET: ci-refresh-secretrun: npm run testdiff --git a/backend/package.json b/backend/package.jsonindex dc308478..fcc76560 100755--- a/backend/package.json+++ b/backend/package.json@@ -26,7 +26,7 @@"start:debug": "NODE_ENV=development nest start --debug --watch","start:dev": "NODE_ENV=development nest start --watch","start:prod": "nest build && nest start",- "test": "NODE_ENV=test vitest run",+ "test": "SYNCIN_AUTH_ENCRYPTIONKEY=test-encryption-key SYNCIN_AUTH_TOKEN_ACCESS_SECRET=test-access-secret SYNCIN_AUTH_TOKEN_REFRESH_SECRET=test-refresh-secret NODE_ENV=test vitest run","test:cov": "NODE_ENV=test vitest run --coverage","test:debug": "NODE_ENV=test vitest --inspect-brk --inspect --logHeapUsage --no-file-parallelism","test:e2e": "NODE_ENV=test vitest run --config vitest-e2e.config.mts",diff --git a/docker/environment.yaml b/docker/environment.yamlindex 3bd573ec..dce13d50 100644--- a/docker/environment.yaml+++ b/docker/environment.yaml@@ -1,5 +1,9 @@+server:+ # It will become required in a future major release.+ # e.g.: https://sync-in.domain.com+ publicUrl:mysql:- url: 'mysql://root:MySQLRootPassword@mariadb:3306/sync_in'+ url: 'mysql://user:MySQLPassword@mariadb:3306/sync_in'auth:# Key used to encrypt MFA secrets at rest.# Optional but strongly recommended.diff --git a/environment/environment.dist.min.yaml b/environment/environment.dist.min.yamlindex 0bc2dea8..4b66921d 100644--- a/environment/environment.dist.min.yaml+++ b/environment/environment.dist.min.yaml@@ -1,3 +1,7 @@+server:+ # It will become required in a future major release.+ # e.g.: https://sync-in.domain.com+ publicUrl:mysql:url: 'mysql://user:MySQLPassword@localhost:3306/database'auth: