[midPoint-git] [Evolveum/midpoint] 7dc4c9: Add methods to find resource and linked/correlated...
Andrej
noreply at github.com
Wed Feb 18 13:45:14 CET 2026
Branch: refs/heads/master
Home: https://github.com/Evolveum/midpoint
Commit: 7dc4c95281cb0e9646b9338a745ea788de2d9d9c
https://github.com/Evolveum/midpoint/commit/7dc4c95281cb0e9646b9338a745ea788de2d9d9c
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2026-02-17 (Tue, 17 Feb 2026)
Changed paths:
M model/model-api/src/main/java/com/evolveum/midpoint/model/api/correlation/CorrelationService.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/correlation/CorrelationServiceImpl.java
M provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ProvisioningService.java
Log Message:
-----------
Add methods to find resource and linked/correlated focus
**What**
Add two new method. One to find the resource to which the given shadow
belong, second which finds the linked/correlated focus of the given
shadow.
**Why**
- The method for finding resource seems to be useful in general.
- The method to find linked/correlated focus of the shadow will be used
in the simulation of mappings. Similar method, which searches for
linked user already exists in the `RepositoryService`, but it is
deprecated and it does only one half of this new method.
**Task**: 10992
Commit: 84726e3c3ca3362c88d37959dfa4af7632cae689
https://github.com/Evolveum/midpoint/commit/84726e3c3ca3362c88d37959dfa4af7632cae689
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2026-02-17 (Tue, 17 Feb 2026)
Changed paths:
M model/model-intest/src/test/resources/tasks/correlator-simulation/task-correlator-simulation-with-mapping.xml
M model/model-intest/src/test/resources/tasks/correlator-simulation/task-correlator-simulation.xml
Log Message:
-----------
Fix initial state of tasks used in tests.
**What**
Fix the initial state of tasks from `runnable` to `closed` to prevent
unintended start of the tasks after import.
**Task**: 11031
Commit: 4ebfec3343a2288fb9d07a26db9c3030be9f0d7c
https://github.com/Evolveum/midpoint/commit/4ebfec3343a2288fb9d07a26db9c3030be9f0d7c
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2026-02-17 (Tue, 17 Feb 2026)
Changed paths:
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestCorrelatorSimulationTask.java
M model/model-intest/src/test/resources/tasks/correlator-simulation/accounts.csv
M model/model-intest/src/test/resources/tasks/correlator-simulation/dummy-resource.xml
A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AccountsCsvParser.java
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/DummyTestResource.java
A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/ObjectChangesExecutor.java
A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/ShadowReader.java
A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/TestResourceAccounts.java
Log Message:
-----------
Add new resource/account related testing framework APIs
**What**
Add new API to the `DummyTestResource`:
- To create a dummy resource populated with accounts from CSV file.
- To link/correlate accounts in the resource with provided users.
**Why**
Very similar functionality was already implemented in various places
across various tests causing duplicity. This changes tries to "unify"
the implementation and provide a good place for such functionality.
Given that the functionality is highly related to the resource, I
decided to put it to the `DummyTestResource` class.
The new `TestResourceAccounts` is intended to represent all accounts on
the resource. So far it only contains two methods, but it can be
extended on demand.
**Note**
Current implementation is not as clean as it could be, because we are
(currently) limited by the fact that `DummyTestResource` is defined in
the repository module, thus it does not have access to some
functionalities implemented in the other modules (e.g. provisioning or
model-intest).
If we will be sometimes able to move this classes e.g. to provisioning,
it will be possible to simplify the API (by removing some of the
functional interfaces).
**Task**: 10992
Commit: 589bc03cf84efa571e6690d56897f0a6d9c09042
https://github.com/Evolveum/midpoint/commit/589bc03cf84efa571e6690d56897f0a6d9c09042
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2026-02-18 (Wed, 18 Feb 2026)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/task/work/WorkDefinitionUtil.java
M infra/schema/src/main/resources/xml/ns/public/common/common-tasks-3.xsd
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/mappings/tasks/MappingActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/mappings/tasks/MappingActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/mappings/tasks/MappingWorkDefinition.java
A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/MappingSimulationData.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ProcessedObjectImpl.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ProcessedObjectsWriter.java
A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestMappingSimulationTask.java
A model/model-intest/src/test/resources/tasks/mapping-simulation/accounts.csv
A model/model-intest/src/test/resources/tasks/mapping-simulation/dummy-resource.xml
A model/model-intest/src/test/resources/tasks/mapping-simulation/task-mapping-simulation.xml
A model/model-intest/src/test/resources/tasks/mapping-simulation/users.xml
M model/model-test/src/main/java/com/evolveum/midpoint/model/test/asserter/SimulationResultAsserter.java
Log Message:
-----------
Add basic logic of the mappings simulation activity
**What**
Implement basic logic of the inbound mappings simulation, which
evaluates specified mappings on provided shadows, applies the resulting
deltas to the shadows owners (if any) and writes it all to simulation
result.
**Why**
This simulation will be used to test basic correctness of suggested (or
manually defined) inbound mappings. Results of this simulation will be
shown on dedicated UI page where user can check what changes (if any)
the mapping causes.
**Notes**
Current implementation does not yet:
- Contain all the event marks which we want to show.
- Evaluate the mapping, if the processed shadow does not have any owner
(linked or correlated).
- Try to correlate shadow without owner.
Those will be added in next changes.
Commit: dc646a4f5931a47a83dabd6ffa889fb86b35a917
https://github.com/Evolveum/midpoint/commit/dc646a4f5931a47a83dabd6ffa889fb86b35a917
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2026-02-18 (Wed, 18 Feb 2026)
Changed paths:
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestMappingSimulationTask.java
M model/model-intest/src/test/resources/tasks/mapping-simulation/accounts.csv
M model/model-intest/src/test/resources/tasks/mapping-simulation/dummy-resource.xml
M model/model-intest/src/test/resources/tasks/mapping-simulation/task-mapping-simulation.xml
M model/model-intest/src/test/resources/tasks/mapping-simulation/users.xml
Log Message:
-----------
Add test of mappings exclusion in mapping simulation
**What**
Add one more test of mappings exclusion, this time exclusion of mappings
which are defined in the parent of the used object type.
**Why**
When the flag for exclusion of existing mappings is set to true, we need
to exclude all existing mappings, which are related to given object
type.
Because we support an object types "inheritance", it is not enough to
simply remove the mappings from the specified object type, but also from
all object types throughout the inheritance hierarchy. This test checks
that.
**Task**: 10992
Commit: bebeb6937f0f91807183dc285f83e983dfed91f3
https://github.com/Evolveum/midpoint/commit/bebeb6937f0f91807183dc285f83e983dfed91f3
Author: Andrej Zan <andrej.zan at evolveum.com>
Date: 2026-02-18 (Wed, 18 Feb 2026)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/task/work/WorkDefinitionUtil.java
M infra/schema/src/main/resources/xml/ns/public/common/common-tasks-3.xsd
M model/model-api/src/main/java/com/evolveum/midpoint/model/api/correlation/CorrelationService.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/correlation/CorrelationServiceImpl.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/mappings/tasks/MappingActivityHandler.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/mappings/tasks/MappingActivityRun.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/mappings/tasks/MappingWorkDefinition.java
A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/MappingSimulationData.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ProcessedObjectImpl.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/simulation/ProcessedObjectsWriter.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestCorrelatorSimulationTask.java
A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestMappingSimulationTask.java
M model/model-intest/src/test/resources/tasks/correlator-simulation/accounts.csv
M model/model-intest/src/test/resources/tasks/correlator-simulation/dummy-resource.xml
M model/model-intest/src/test/resources/tasks/correlator-simulation/task-correlator-simulation-with-mapping.xml
M model/model-intest/src/test/resources/tasks/correlator-simulation/task-correlator-simulation.xml
A model/model-intest/src/test/resources/tasks/mapping-simulation/accounts.csv
A model/model-intest/src/test/resources/tasks/mapping-simulation/dummy-resource.xml
A model/model-intest/src/test/resources/tasks/mapping-simulation/task-mapping-simulation.xml
A model/model-intest/src/test/resources/tasks/mapping-simulation/users.xml
M model/model-test/src/main/java/com/evolveum/midpoint/model/test/asserter/SimulationResultAsserter.java
M provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ProvisioningService.java
A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AccountsCsvParser.java
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/DummyTestResource.java
A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/ObjectChangesExecutor.java
A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/ShadowReader.java
A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/TestResourceAccounts.java
Log Message:
-----------
Merge branch 'feature/t-4184'
Compare: https://github.com/Evolveum/midpoint/compare/ea0dd0f14702...bebeb6937f0f
To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications
More information about the midPoint-svn
mailing list