SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
292 stars 140 forks source link

Search solution to save all data collected by EnvironmentManager when regression is running so we can lower number of API calls performed by automated tests #10703

Open rdutu-vg opened 1 year ago

rdutu-vg commented 1 year ago

Currently EnvironmentManager.class is responsible to provide UUIDs and other data from API calls. Try to refactor and convert it into a singleton in order to reduce the number of calls performed by automated tests during regression runs with multiple threads running in parallel.

MartinWahnschaffe commented 1 year ago

What's even more important than making it a singleton is to make it cache the infrastructure data so that not every call to getDistrictUUID retrieves all districts from the server.