Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop updating sync token in dry run (MID-5644)
When doing LiveSync in dry run mode we no longer update the token (by default); with the exception of token initialization. The original behavior of updating the token can be enabled by setting updateLiveSyncTokenInDryRun extension property to true.
- Loading branch information
Showing
11 changed files
with
226 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
model/model-intest/src/test/resources/sync/task-intsync-dry-run-with-update.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2019 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<task oid="ebcc7393-e886-40ae-8a9f-dfa72230c658" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:ext="http://midpoint.evolveum.com/xml/ns/public/model/extension-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"> | ||
|
||
<name>Live Sync Interrupted: Dry Run with update</name> | ||
|
||
<extension> | ||
<ext:objectclass>ri:AccountObjectClass</ext:objectclass> | ||
<ext:dryRun>true</ext:dryRun> | ||
<ext:updateLiveSyncTokenInDryRun>true</ext:updateLiveSyncTokenInDryRun> | ||
</extension> | ||
|
||
<taskIdentifier>ebcc7393-e886-40ae-8a9f-dfa72230c658</taskIdentifier> | ||
<ownerRef oid="00000000-0000-0000-0000-000000000002"/> | ||
<executionStatus>runnable</executionStatus> | ||
|
||
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/synchronization/task/live-sync/handler-3</handlerUri> | ||
<objectRef oid="7a58233a-1cfb-46d1-a404-08cdf4626ebb" type="ResourceType"/> | ||
<recurrence>single</recurrence> | ||
</task> |
28 changes: 28 additions & 0 deletions
28
model/model-intest/src/test/resources/sync/task-intsync-dry-run.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2019 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<task oid="8b5b3b2d-6ef7-4cc8-8507-42778e0d869f" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:ext="http://midpoint.evolveum.com/xml/ns/public/model/extension-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"> | ||
|
||
<name>Live Sync Interrupted: Dry Run</name> | ||
|
||
<extension> | ||
<ext:objectclass>ri:AccountObjectClass</ext:objectclass> | ||
<ext:dryRun>true</ext:dryRun> | ||
</extension> | ||
|
||
<taskIdentifier>8b5b3b2d-6ef7-4cc8-8507-42778e0d869f</taskIdentifier> | ||
<ownerRef oid="00000000-0000-0000-0000-000000000002"/> | ||
<executionStatus>runnable</executionStatus> | ||
|
||
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/synchronization/task/live-sync/handler-3</handlerUri> | ||
<objectRef oid="7a58233a-1cfb-46d1-a404-08cdf4626ebb" type="ResourceType"/> | ||
<recurrence>single</recurrence> | ||
</task> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.