From 4a48bb6d0f8b8d8b9c7cf291cac55d35c9eb1882 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Wed, 4 Sep 2024 22:00:59 +0200 Subject: [PATCH] Configure mailer properly in enterprise functional tests --- .github/workflows/functional-tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 7287ea979..1965d315c 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -71,6 +71,7 @@ jobs: working-directory: ${{ env.backend-directory }} run: | touch .env + echo DJANGO_DEBUG=True >> .env echo DJANGO_SUPERUSER_EMAIL=admin@tests.com >> .env echo DJANGO_SUPERUSER_PASSWORD=1234 >> .env echo POSTGRES_NAME=postgres >> .env @@ -175,6 +176,11 @@ jobs: echo DB_HOST=localhost >> .env echo CISO_ASSISTANT_SUPERUSER_EMAIL='' >> .env echo CISO_ASSISTANT_URL=http://localhost:4173 >> .env + echo DEFAULT_FROM_EMAIL='ciso-assistant@tests.net' >> .env + echo EMAIL_HOST=localhost >> .env + echo EMAIL_HOST_USER=user@tests.com >> .env + echo EMAIL_HOST_PASSWORD=password >> .env + echo EMAIL_PORT=1025 >> .env echo DJANGO_SETTINGS_MODULE=enterprise_core.settings >> .env - name: Run migrations working-directory: ${{ env.backend-directory }}