From fa73bb1ccedafadd6ee25dd7216a6a04e7d9e3a2 Mon Sep 17 00:00:00 2001 From: sergiollende Date: Thu, 11 Apr 2024 13:01:17 +0200 Subject: [PATCH] Test-Environment change for e2e tests --- .github/workflows/release.yml | 2 +- webapp/e2e/test-environment-setup.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c037438..f4926f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,7 +44,7 @@ jobs: - run: npm --prefix users install - run: npm --prefix gatewayservice install - run: npm --prefix webapp install - - run: CI=false npm --prefix webapp run build + - run: CI=false npm --prefix webapp run build CI=true - run: npm --prefix webapp run test:e2e docker-push-webapp: name: Push webapp Docker Image to GitHub Packages diff --git a/webapp/e2e/test-environment-setup.js b/webapp/e2e/test-environment-setup.js index a43eabb..7dc5b79 100644 --- a/webapp/e2e/test-environment-setup.js +++ b/webapp/e2e/test-environment-setup.js @@ -2,8 +2,7 @@ const { MongoMemoryServer } = require('mongodb-memory-server'); let mongoserver; -let userservice; -let authservice; +let users; let wikidataservice; let gatewayservice; @@ -14,8 +13,7 @@ async function startServer() { process.env.MONGODB_URI = mongoUri; gatewayservice = await require("../../gatewayservice/gateway-service"); wikidataservice = await require("../../wikidataservice/index"); - authservice = await require("../../users/authservice/auth-service"); - userservice = await require("../../users/userservice/user-service"); + users = await require("../../users/index"); } startServer();