Skip to content

Commit d3f8a67

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/tests/e2e/npm_and_yarn-47ce2aa328
2 parents 69506c4 + 3d6e600 commit d3f8a67

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

services/web/server/src/simcore_service_webserver/application_settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ class ApplicationSettings(BaseApplicationSettings, MixinLoggingSettings):
303303
description="Enables real-time collaboration features",
304304
json_schema_extra={
305305
"auto_default_from_env": True,
306-
_X_FEATURE_UNDER_DEVELOPMENT: True,
307306
},
308307
),
309308
]

services/web/server/tests/unit/with_dbs/02/conftest.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,20 @@ def max_number_of_user_sessions(faker: Faker) -> int:
493493
return faker.pyint(min_value=1, max_value=5)
494494

495495

496+
@pytest.fixture
497+
def with_disabled_rtc_collaboration(
498+
app_environment: EnvVarsDict, # ensure pre-app startup envs
499+
monkeypatch: pytest.MonkeyPatch,
500+
) -> None:
501+
setenvs_from_dict(
502+
monkeypatch,
503+
{"WEBSERVER_REALTIME_COLLABORATION": "null"},
504+
)
505+
506+
496507
@pytest.fixture
497508
def with_enabled_rtc_collaboration(
498-
app_environment: EnvVarsDict,
499-
with_dev_features_enabled: None,
509+
app_environment: EnvVarsDict, # ensure pre-app startup envs
500510
monkeypatch: pytest.MonkeyPatch,
501511
max_number_of_user_sessions: int,
502512
) -> None:
@@ -512,8 +522,7 @@ def with_enabled_rtc_collaboration(
512522

513523
@pytest.fixture
514524
def with_enabled_rtc_collaboration_limited_to_1_user(
515-
app_environment: EnvVarsDict,
516-
with_dev_features_enabled: None,
525+
app_environment: EnvVarsDict, # ensure pre-app startup envs
517526
monkeypatch: pytest.MonkeyPatch,
518527
) -> None:
519528
setenvs_from_dict(

services/web/server/tests/unit/with_dbs/02/test_projects_states_handlers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@ async def test_close_project(
11511151
],
11521152
)
11531153
async def test_get_active_project(
1154+
with_disabled_rtc_collaboration: None,
11541155
client: TestClient,
11551156
logged_user: UserInfoDict,
11561157
user_project: ProjectDict,
@@ -1171,6 +1172,7 @@ async def test_get_active_project(
11711172
if expected == status.HTTP_200_OK:
11721173
pytest.fail("socket io connection should not fail")
11731174
assert client.app
1175+
11741176
# get active projects -> empty
11751177
get_active_projects_url = (
11761178
client.app.router["get_active_project"]
@@ -1795,6 +1797,7 @@ async def test_closing_and_reopening_tab_of_opened_project_multiple_users(
17951797

17961798
@pytest.mark.parametrize(*standard_user_role_response())
17971799
async def test_open_shared_project_2_users_locked_remove_once_rtc_collaboration_is_defaulted(
1800+
with_disabled_rtc_collaboration: None,
17981801
client: TestClient,
17991802
client_on_running_server_factory: Callable[[], TestClient],
18001803
logged_user: dict,
@@ -2035,6 +2038,7 @@ async def test_open_shared_project_2_users_locked_remove_once_rtc_collaboration_
20352038

20362039
@pytest.mark.parametrize(*standard_user_role_response())
20372040
async def test_open_shared_project_at_same_time(
2041+
with_disabled_rtc_collaboration: None,
20382042
client: TestClient,
20392043
client_on_running_server_factory: Callable[[], TestClient],
20402044
logged_user: dict,

0 commit comments

Comments
 (0)