@@ -42,17 +42,19 @@ def app_environment_for_wb_authz_service_dict(
4242
4343 postgres_cfg = default_app_cfg ["db" ]["postgres" ]
4444
45+ # Checks that docker-compose service environment is correct
4546 assert (
4647 docker_compose_service_environment_dict ["WEBSERVER_APP_FACTORY_NAME" ]
4748 == "WEBSERVER_AUTHZ_APP_FACTORY"
4849 )
49-
5050 # expected tracing in the docker-environ BUT we will disable it for tests
5151 assert "WEBSERVER_TRACING" in docker_compose_service_environment_dict
5252 assert (
5353 "TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT"
5454 in docker_compose_service_environment_dict
5555 )
56+ assert "WEBSERVER_DIAGNOSTICS" in docker_compose_service_environment_dict
57+ assert "WEBSERVER_PROFILING" in docker_compose_service_environment_dict
5658
5759 return {
5860 ** docker_compose_service_environment_dict ,
@@ -121,7 +123,7 @@ async def wb_auth_app(
121123@pytest_asyncio .fixture (loop_scope = "function" , scope = "function" )
122124async def web_server (
123125 postgres_db : sa .engine .Engine , # sets up postgres database
124- auth_app : web .Application ,
126+ wb_auth_app : web .Application ,
125127 webserver_test_server_port : int ,
126128 # tools
127129 aiohttp_server : Callable ,
@@ -141,10 +143,10 @@ async def test_logout(request: web.Request) -> web.Response:
141143 await security_web .forget_identity (request , response )
142144 return response
143145
144- auth_app .router .add_post ("/v0/test/login" , test_login )
145- auth_app .router .add_post ("/v0/test/logout" , test_logout )
146+ wb_auth_app .router .add_post ("/v0/test/login" , test_login )
147+ wb_auth_app .router .add_post ("/v0/test/logout" , test_logout )
146148
147- return await aiohttp_server (auth_app , port = webserver_test_server_port )
149+ return await aiohttp_server (wb_auth_app , port = webserver_test_server_port )
148150
149151
150152# @pytest.mark.parametrize(
0 commit comments