Initialise WorkflowHandler in the tests and reorder initialisation of settings and workflow handler (#22604)

This commit is contained in:
Ram Narayan Balaji 2025-07-28 10:16:29 +05:30 committed by GitHub
parent 7437e3b80f
commit d0739f0a23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,6 +53,7 @@ import org.openmetadata.common.utils.CommonUtil;
import org.openmetadata.schema.service.configuration.elasticsearch.ElasticSearchConfiguration;
import org.openmetadata.schema.type.IndexMappingLanguage;
import org.openmetadata.search.IndexMappingLoader;
import org.openmetadata.service.governance.workflows.WorkflowHandler;
import org.openmetadata.service.jdbi3.CollectionDAO;
import org.openmetadata.service.jdbi3.locator.ConnectionAwareAnnotationSqlLocator;
import org.openmetadata.service.jdbi3.locator.ConnectionType;
@ -261,9 +262,10 @@ public abstract class OpenMetadataApplicationTest {
Entity.setCollectionDAO(getDao(jdbi));
Entity.setJobDAO(jdbi.onDemand(JobDAO.class));
Entity.initializeRepositories(config, jdbi);
SettingsCache.initialize(config);
workflow.loadMigrations();
workflow.runMigrationWorkflows();
WorkflowHandler.initialize(config);
SettingsCache.initialize(config);
Entity.cleanup();
}