From c70de8485f6aafc59329d4218059293a116eb86e Mon Sep 17 00:00:00 2001
From: iyanfdezz <uo288231@uniovi.es>
Date: Mon, 1 Apr 2024 22:40:13 +0200
Subject: [PATCH] Modificado release.yml

---
 .github/workflows/release.yml        | 4 ++++
 webapp/e2e/test-environment-setup.js | 1 +
 2 files changed, 5 insertions(+)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5262ab34..1bee1676 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -139,6 +139,10 @@ jobs:
     needs: [e2e-tests]
     steps:
       - uses: actions/checkout@v4
+      - name: Update OpenAPI configuration
+        run: |
+          DEPLOY_HOST=${{ secrets.DEPLOY_HOST }}
+          sed -i "s/SOMEIP/${DEPLOY_HOST}/g" gatewayservice/openapi.yaml
       - name: Publish to Registry
         uses: elgohr/Publish-Docker-Github-Action@v5
         with:
diff --git a/webapp/e2e/test-environment-setup.js b/webapp/e2e/test-environment-setup.js
index 7b7ed511..f838afb8 100644
--- a/webapp/e2e/test-environment-setup.js
+++ b/webapp/e2e/test-environment-setup.js
@@ -12,6 +12,7 @@ async function startServer() {
     const mongoUri = mongoserver.getUri();
     process.env.MONGODB_URI = mongoUri;
     userservice = await require("../../users/userservice/user-service");
+    statsservice = await require("../../stats/stats-service");
     authservice = await require("../../users/authservice/auth-service");
     gatewayservice = await require("../../gatewayservice/gateway-service");
   }