mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 17:04:54 +00:00
Initialise WorkflowHandler in the tests and reorder initialisation of settings and workflow handler (#22604)
This commit is contained in:
parent
7437e3b80f
commit
d0739f0a23
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user