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
293 stars 143 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 2 years ago

rdutu-vg commented 2 years 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 2 years 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.