diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 2352e5b..1481234 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -38,7 +38,7 @@ jobs: - name: E2E tests run: | cd backend - RUST_BACKTRACE=1 cargo run -p sync_server & + RUST_BACKTRACE=1 cargo run -p sync_server config-e2e.yml & cd .. scripts/update-api-types.sh diff --git a/backend/.dockerignore b/backend/.dockerignore index dd62faf..985e2cd 100644 --- a/backend/.dockerignore +++ b/backend/.dockerignore @@ -3,4 +3,4 @@ Dockerfile .dockerignore databases sync_lib/pkg -config.yml +*.yml diff --git a/backend/config.yml b/backend/config-e2e.yml similarity index 76% rename from backend/config.yml rename to backend/config-e2e.yml index d8ccf20..2345c8b 100644 --- a/backend/config.yml +++ b/backend/config-e2e.yml @@ -9,5 +9,11 @@ users: user_tokens: - name: admin token: test-token-change-me + vaults: + all: true + - name: test token: other-test-token + vaults: + allowed: + - default diff --git a/frontend/test-client/src/cli.ts b/frontend/test-client/src/cli.ts index 4747f2a..799ee79 100644 --- a/frontend/test-client/src/cli.ts +++ b/frontend/test-client/src/cli.ts @@ -27,7 +27,7 @@ async function runTest({ const initialSettings: Partial = { isSyncEnabled: true, - token: "test-token-change-me", // same as in backend/config.yml + token: "test-token-change-me", // same as in backend/config-e2e.yml vaultName: uuidv4(), syncConcurrency: concurrency, remoteUri: "http://localhost:3000"