[midPoint-git] [Evolveum/midpoint] 249084: Add automatic task management in tests
mederly
noreply at github.com
Wed Oct 9 08:45:18 UTC 2019
Branch: refs/heads/tmp/mid-5832
Home: https://github.com/Evolveum/midpoint
Commit: 249084b9662a2914cf1bb04d05ee5aff96013489
https://github.com/Evolveum/midpoint/commit/249084b9662a2914cf1bb04d05ee5aff96013489
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2019-10-08 (Tue, 08 Oct 2019)
Changed paths:
M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/async/TestAsyncUpdate.java
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java
M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/tracing/TracerImpl.java
Log Message:
-----------
Add automatic task management in tests
Using @BeforeMethod we create task and operation result for test
methods, along with displaying the method start information. In
@AfterMethod we store the trace file, if requested.
EXPERIMENTAL.
Commit: 597adb27a8c49c9b67921bb2334bdcc73ba59171
https://github.com/Evolveum/midpoint/commit/597adb27a8c49c9b67921bb2334bdcc73ba59171
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2019-10-08 (Tue, 08 Oct 2019)
Changed paths:
M model/model-intest/src/test/resources/logback-test.xml
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ResourceObjectReferenceResolver.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ShadowCache.java
R provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ShadowManager.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/errorhandling/ObjectAlreadyExistHandler.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/errorhandling/ObjectNotFoundHandler.java
A provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadowmanager/ShadowDeltaComputer.java
A provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadowmanager/ShadowManager.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/sync/ChangeProcessor.java
M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/async/TestAsyncUpdate.java
M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/async/TestAsyncUpdateCaching.java
M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/async/TestAsyncUpdateCachingIndexOnly.java
M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/async/TestAsyncUpdateNoCaching.java
A provisioning/provisioning-impl/src/test/resources/async/change-110-banderson-delta-add-values.xml
R provisioning/provisioning-impl/src/test/resources/async/change-110-banderson-delta.xml
A provisioning/provisioning-impl/src/test/resources/async/change-115-banderson-delta-delete-values.xml
A provisioning/provisioning-impl/src/test/resources/async/change-117-banderson-delta-replace-values.xml
M provisioning/provisioning-impl/testng-integration.xml
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/ShadowAttributesAsserter.java
Log Message:
-----------
Refactor ShadowManager a little bit
Here we moved ShadowManager to a separate package and factored out
delta computation functionality to ShadowDeltaComputer class.
Also added tests for faulty update of index-only cached attributes
(MID-5832).
Commit: 19db6251606f1d363807f33780adeeedc3708644
https://github.com/Evolveum/midpoint/commit/19db6251606f1d363807f33780adeeedc3708644
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2019-10-09 (Wed, 09 Oct 2019)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ObjectTypeUtil.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelController.java
M provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ResourceEventDescription.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ResourceEventListenerImpl.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ResourceObjectConverter.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ShadowCache.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadowmanager/ShadowDeltaComputer.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadowmanager/ShadowManager.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/sync/ChangeProcessor.java
M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/async/TestAsyncUpdate.java
A provisioning/provisioning-impl/src/test/resources/async/change-112-banderson-delta-add-more-values.xml
M provisioning/provisioning-impl/testng-integration.xml
M provisioning/ucf-api/src/main/java/com/evolveum/midpoint/provisioning/ucf/api/Change.java
M provisioning/ucf-impl-builtin/src/main/java/com/evolveum/midpoint/provisioning/ucf/impl/builtin/async/TransformationalAsyncUpdateMessageListener.java
M provisioning/ucf-impl-connid/src/main/java/com/evolveum/midpoint/provisioning/ucf/impl/connid/ConnectorInstanceConnIdImpl.java
M provisioning/ucf-impl-connid/src/test/java/com/evolveum/midpoint/provisioning/ucf/impl/connid/TestUcfDummy.java
M testing/story/src/test/java/com/evolveum/midpoint/testing/story/grouper/TestGrouperAsyncUpdate.java
Log Message:
-----------
Fix delete/replace deltas on index-only attrs
Here we fixed the algorithm that computes the delta for repo shadow
update during change processing in provisioning. It didn't treat
index-only attributes correctly for delta-only changes. Now these
attributes are marked as incomplete when working with old repo shadow
and then updated according to the delta. This is a resolution
of MID-5832.
We also clarified fields of Change and ResourceEventDescription classes
a bit (oldShadow -> oldRepoShadow, currentShadow ->
currentResourceObject) and some of the constructors as well. Also did
similar changes in local vars at several places. However, this should
be reworked more thoroughly (MID-5834).
Compare: https://github.com/Evolveum/midpoint/compare/249084b9662a%5E...19db6251606f
More information about the midPoint-svn
mailing list