-
Bug Report
-
Resolution: Unresolved
-
L3 - Default
-
None
-
None
-
None
-
S
During tests of the importing process we mock several objects to simulate real world conditions. These mockings however are missing some information, and in order for the tests to not fail, checks are required in the production code, for cases that would in reality never happen.
Steps to reproduce:
1) Exclude the check of whether the configurationService is null in the method readExcludedIdsFromConfig() from BackoffImportMediator.java and/or remove the catch (OptimizeConfigurationException) in that method
2) Run our build pipeline
3) Notice that tests fail, checking for a case that would never happen in reality (configurationService is null or the engine coinfigured in the ImportIndexHandler doesn't exist in the config)
Solution:
The mocked entities should be closer to real life objects that the code may encounter
This ticket was migrated to github: https://github.com/camunda/camunda-optimize/issues/10644. Please use this link for any future references and continue any discussion there.