Skip to content

Commit

Permalink
🐛 Fix webserver twilio env (#4566)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryHrytsuk authored Aug 2, 2023
1 parent 2e33ecd commit 4faea96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .env-devel
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ LOGIN_REGISTRATION_CONFIRMATION_REQUIRED=0
LOGIN_REGISTRATION_INVITATION_REQUIRED=0
LOGIN_2FA_REQUIRED=0
LOGIN_2FA_CODE_EXPIRATION_SEC=60
TWILIO_ACCOUNT_SID=DUMMY
TWILIO_AUTH_TOKEN=DUMMY
TWILIO_COUNTRY_CODES_W_ALPHANUMERIC_SID_SUPPORT=["41"]

WEBSERVER_FRONTEND={}

Expand Down
6 changes: 0 additions & 6 deletions packages/settings-library/tests/test_twilio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# pylint: disable=unused-argument
# pylint: disable=unused-variable

import pytest
from pydantic import ValidationError
from pytest import MonkeyPatch
from pytest_simcore.helpers.utils_envs import setenvs_from_dict
from settings_library.twilio import TwilioSettings
Expand All @@ -12,10 +10,6 @@
def test_twilio_settings_within_envdevel(
mock_env_devel_environment: dict[str, str], monkeypatch: MonkeyPatch
):
# in .env-devel these are for the oment undefined
with pytest.raises(ValidationError):
TwilioSettings.create_from_envs()

# adds twilio credentials
with monkeypatch.context() as patch:
setenvs_from_dict(
Expand Down
3 changes: 3 additions & 0 deletions services/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ services:
LOGIN_REGISTRATION_INVITATION_REQUIRED: ${LOGIN_REGISTRATION_INVITATION_REQUIRED}
LOGIN_2FA_REQUIRED: ${LOGIN_2FA_REQUIRED}
LOGIN_2FA_CODE_EXPIRATION_SEC: ${LOGIN_2FA_CODE_EXPIRATION_SEC}
TWILIO_ACCOUNT_SID: ${TWILIO_ACCOUNT_SID}
TWILIO_AUTH_TOKEN: ${TWILIO_AUTH_TOKEN}
TWILIO_COUNTRY_CODES_W_ALPHANUMERIC_SID_SUPPORT: ${TWILIO_COUNTRY_CODES_W_ALPHANUMERIC_SID_SUPPORT}

# WEBSERVER_REDIS
REDIS_HOST: ${REDIS_HOST}
Expand Down

0 comments on commit 4faea96

Please sign in to comment.