Skip to content

Commit

Permalink
Adapt failing TestImportRecon
Browse files Browse the repository at this point in the history
As `synchronization` is a container now, the existence of objects
referenced there (like object templates) is checked on import. This
makes ordering of objects being imported during tests more important.
  • Loading branch information
mederly committed Feb 25, 2022
1 parent 90e6b11 commit 8e079a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ public void initSystem(Task initTask, OperationResult initResult) throws Excepti
reconciliationResultListener = new DebugReconciliationResultListener();
reconciliationActivityHandler.setReconciliationResultListener(reconciliationResultListener);

// Object templates (must be imported before resource, otherwise there are validation warnigns)
repoAddObjectFromFile(USER_TEMPLATE_LIME.file, initResult);

dummyResourceCtlAzure = DummyResourceContoller.create(RESOURCE_DUMMY_AZURE_NAME, resourceDummyAzure);
dummyResourceCtlAzure.extendSchemaPirate();
dummyResourceCtlAzure.addOrgTop();
Expand Down Expand Up @@ -230,9 +233,6 @@ public void initSystem(Task initTask, OperationResult initResult) throws Excepti

applyPasswordPolicy(PASSWORD_POLICY_GLOBAL_OID, SECURITY_POLICY_OID, initTask, initResult);

// Object templates
repoAddObjectFromFile(USER_TEMPLATE_LIME.file, initResult);

// Users
userImporter = repoAddObjectFromFile(USER_IMPORTER.file, initResult);
// And a user that will be correlated to that account
Expand Down

0 comments on commit 8e079a0

Please sign in to comment.