@@ -65,6 +65,7 @@ def test_settings_to_client_statics(app_settings: ApplicationSettings):
6565 # special alias
6666 assert statics ["stackName" ] == "master-simcore"
6767 assert statics ["pluginsDisabled" ] == [
68+ "WEBSERVER_REALTIME_COLLABORATION" ,
6869 "WEBSERVER_META_MODELING" ,
6970 "WEBSERVER_VERSION_CONTROL" ,
7071 ]
@@ -78,16 +79,23 @@ def test_settings_to_client_statics_plugins(
7879 "WEBSERVER_SCICRUNCH" ,
7980 "WEBSERVER_META_MODELING" ,
8081 "WEBSERVER_VERSION_CONTROL" ,
82+ "WEBSERVER_REALTIME_COLLABORATION" ,
8183 }
8284 for name in disable_plugins :
8385 monkeypatch .setenv (name , "null" )
8486
8587 monkeypatch .setenv ("WEBSERVER_FOLDERS" , "0" )
8688 disable_plugins .add ("WEBSERVER_FOLDERS" )
8789
90+ monkeypatch .setenv (
91+ "WEBSERVER_REALTIME_COLLABORATION" , '{"RTC_MAX_NUMBER_OF_USERS":3}'
92+ )
93+ disable_plugins .remove ("WEBSERVER_REALTIME_COLLABORATION" )
94+
8895 settings = ApplicationSettings .create_from_envs ()
8996 statics = settings .to_client_statics ()
9097
98+ # -------------
9199 print ("STATICS:\n " , json_dumps (statics , indent = 1 ))
92100
93101 assert settings .WEBSERVER_LOGIN
@@ -108,6 +116,13 @@ def test_settings_to_client_statics_plugins(
108116 == settings .WEBSERVER_SESSION .SESSION_COOKIE_MAX_AGE
109117 )
110118
119+ assert "WEBSERVER_REALTIME_COLLABORATION" in statics ["pluginsDisabled" ]
120+ assert settings .WEBSERVER_REALTIME_COLLABORATION
121+ assert (
122+ statics ["webserverRealtimeCollaboration" ]["RTC_MAX_NUMBER_OF_USERS" ]
123+ == settings .WEBSERVER_REALTIME_COLLABORATION .RTC_MAX_NUMBER_OF_USERS
124+ )
125+
111126 assert statics ["vcsReleaseTag" ]
112127 assert TypeAdapter (HttpUrl ).validate_python (statics ["vcsReleaseUrl" ])
113128
0 commit comments