|
| 1 | +# pylint: disable=redefined-outer-name |
| 2 | +# pylint: disable=unused-argument |
| 3 | +# pylint: disable=unused-variable |
| 4 | +# pylint: disable=too-many-arguments |
| 5 | + |
| 6 | + |
1 | 7 | import json |
2 | 8 | import os |
3 | 9 | import random |
@@ -176,10 +182,11 @@ def mock_env_dockerfile_build(monkeypatch: pytest.MonkeyPatch) -> EnvVarsDict: |
176 | 182 | @pytest.fixture |
177 | 183 | def mock_webserver_service_environment( |
178 | 184 | monkeypatch: pytest.MonkeyPatch, |
179 | | - mock_env_makefile: EnvVarsDict, # pylint: disable=redefined-outer-name |
180 | | - mock_env_devel_environment: EnvVarsDict, # pylint: disable=redefined-outer-name |
181 | | - mock_env_dockerfile_build: EnvVarsDict, # pylint: disable=redefined-outer-name |
182 | | - mock_env_deployer_pipeline: EnvVarsDict, # pylint: disable=redefined-outer-name |
| 185 | + mock_env_makefile: EnvVarsDict, |
| 186 | + mock_env_devel_environment: EnvVarsDict, |
| 187 | + mock_env_dockerfile_build: EnvVarsDict, |
| 188 | + mock_env_deployer_pipeline: EnvVarsDict, |
| 189 | + service_name: str, |
183 | 190 | ) -> EnvVarsDict: |
184 | 191 | """ |
185 | 192 | Mocks environment produce in the docker compose config with a .env (.env-devel) |
@@ -221,6 +228,7 @@ def mock_webserver_service_environment( |
221 | 228 | "SWARM_STACK_NAME": os.environ.get("SWARM_STACK_NAME", "simcore"), |
222 | 229 | "WEBSERVER_LOGLEVEL": os.environ.get("LOG_LEVEL", "WARNING"), |
223 | 230 | "SESSION_COOKIE_MAX_AGE": str(7 * 24 * 60 * 60), |
| 231 | + "WEBSERVER_RPC_NAMESPACE": service_name, |
224 | 232 | }, |
225 | 233 | ) |
226 | 234 |
|
|
0 commit comments