[midPoint-git] [Evolveum/midpoint] 9f425f: Re-arrange tests related to task mechanics

mederly noreply at github.com
Thu Jun 24 17:12:49 CEST 2021


  Branch: refs/heads/feature/tasks-improvements
  Home:   https://github.com/Evolveum/midpoint
  Commit: 9f425f9a28cafe38c8b187567ba2f679efdff789
      https://github.com/Evolveum/midpoint/commit/9f425f9a28cafe38c8b187567ba2f679efdff789
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/reporting/TestTaskReporting.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/AbstractResourceDummyInterruptedSync.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/DummyInterruptedSyncImpreciseResource.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/DummyInterruptedSyncResource.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestLiveSyncTask.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestLiveSyncTaskMechanics.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestLiveSyncTaskMechanicsMultithreaded.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestLiveSyncTasks.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestProgressReporting.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestReconTask.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestReconTaskMultiNode.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestReconTaskMultithreaded.java
    R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestReconTaskPartitioned.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestReconTasks.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestReconTasksMultiNode.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestReconTasksMultithreaded.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestReconTasksPartitioned.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/AbstractResourceDummyInterruptedSync.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/DummyInterruptedSyncImpreciseResource.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/DummyInterruptedSyncResource.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestCleanupTask.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestLiveSyncTask.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestLiveSyncTaskMultithreaded.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestProgressReporting.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestTaskReporting.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/package-info.java
    M model/model-intest/src/test/resources/reporting/resource-source.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-errors-source-precise.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-errors-target.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-interrupted-sync-imprecise.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-interrupted-sync.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-multi-changes.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-no-policy.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-xfer1-source.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-xfer1-target-deletable.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-xfer2-source.xml
    R model/model-intest/src/test/resources/sync/resource-dummy-xfer2-target-not-deletable.xml
    R model/model-intest/src/test/resources/sync/role-errors-target.xml
    R model/model-intest/src/test/resources/sync/role-xfer1.xml
    R model/model-intest/src/test/resources/sync/role-xfer2.xml
    R model/model-intest/src/test/resources/sync/task-errors-precise-ignore-partial-stop-on-fatal.xml
    R model/model-intest/src/test/resources/sync/task-errors-precise-ignore.xml
    R model/model-intest/src/test/resources/sync/task-errors-precise-retry-later-max-4.xml
    R model/model-intest/src/test/resources/sync/task-errors-precise-retry-later-on-any.xml
    R model/model-intest/src/test/resources/sync/task-errors-precise-stop-on-any.xml
    R model/model-intest/src/test/resources/sync/task-intsync-batched-imprecise.xml
    R model/model-intest/src/test/resources/sync/task-intsync-batched.xml
    R model/model-intest/src/test/resources/sync/task-intsync-dry-run-with-update.xml
    R model/model-intest/src/test/resources/sync/task-intsync-dry-run.xml
    R model/model-intest/src/test/resources/sync/task-intsync-error-imprecise.xml
    R model/model-intest/src/test/resources/sync/task-intsync-error.xml
    R model/model-intest/src/test/resources/sync/task-intsync-slow-model-imprecise.xml
    R model/model-intest/src/test/resources/sync/task-intsync-slow-model.xml
    R model/model-intest/src/test/resources/sync/task-intsync-slow-resource-imprecise.xml
    R model/model-intest/src/test/resources/sync/task-intsync-slow-resource.xml
    R model/model-intest/src/test/resources/sync/task-multi-changes.xml
    R model/model-intest/src/test/resources/sync/task-no-policy.xml
    R model/model-intest/src/test/resources/sync/task-xfer1.xml
    R model/model-intest/src/test/resources/sync/task-xfer2.xml
    A model/model-intest/src/test/resources/tasks/cleanup/task-cleanup-legacy.xml
    A model/model-intest/src/test/resources/tasks/cleanup/task-cleanup.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-errors-source-precise.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-errors-target.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-interrupted-sync-imprecise.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-interrupted-sync.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-multi-changes.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-no-policy.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-xfer1-source.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-xfer1-target-deletable.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-xfer2-source.xml
    A model/model-intest/src/test/resources/tasks/livesync/resource-dummy-xfer2-target-not-deletable.xml
    A model/model-intest/src/test/resources/tasks/livesync/role-errors-target.xml
    A model/model-intest/src/test/resources/tasks/livesync/role-xfer1.xml
    A model/model-intest/src/test/resources/tasks/livesync/role-xfer2.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-errors-precise-ignore-partial-stop-on-fatal.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-errors-precise-ignore.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-errors-precise-retry-later-max-4.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-errors-precise-retry-later-on-any.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-errors-precise-stop-on-any.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-batched-imprecise.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-batched.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-dry-run-with-update.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-dry-run.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-error-imprecise.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-error.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-slow-model-imprecise.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-slow-model.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-slow-resource-imprecise.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-intsync-slow-resource.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-multi-changes.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-no-policy.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-xfer1.xml
    A model/model-intest/src/test/resources/tasks/livesync/task-xfer2.xml
    R model/model-intest/src/test/resources/tasks/task-cleanup-legacy.xml
    R model/model-intest/src/test/resources/tasks/task-cleanup.xml
    M model/model-intest/testng-db-specific.xml
    M model/model-intest/testng-integration-full.xml

  Log Message:
  -----------
  Re-arrange tests related to task mechanics

These tests are now in com.evolveum.midpoint.model.intest.tasks
package.


  Commit: 36d6779b571a5a68c2710dda66c5e83221efa0d9
      https://github.com/Evolveum/midpoint/commit/36d6779b571a5a68c2710dda66c5e83221efa0d9
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    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/cleanup/CleanupActivityHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/cleanup/ShadowRefreshActivityHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/async/AsyncUpdateActivityExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/async/AsyncUpdateActivityHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/recon/ReconciliationActivityHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/sync/LiveSyncActivityExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/sync/LiveSyncActivityHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/scanner/AbstractScanActivityExecution.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/scanner/FocusValidityScanActivityExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/scanner/FocusValidityScanActivityHandler.java
    R model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/scanner/FocusValidityScanCompositeExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/scanner/FocusValidityScanPartialExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/simple/SimpleActivityExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/trigger/TriggerScanActivityHandler.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/DummyInterruptedSyncResource.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestReconTask.java
    A model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestReconTaskMultiNode.java
    A model/model-intest/src/test/resources/tasks/recon/task-reconciliation-multinode.xml
    A model/model-intest/src/test/resources/tasks/recon/task-reconciliation.xml
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/task/PropagationActivityHandler.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/Activity.java
    A repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/ActivityStateDefinition.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/EmbeddedActivity.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/StandaloneActivity.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/execution/AbstractActivityExecution.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/execution/DelegatingActivityExecution.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/execution/DistributingActivityExecution.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/execution/LocalActivityExecution.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/handlers/ActivityHandler.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/handlers/PureCompositeActivityHandler.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/state/ActivityState.java
    M repo/repo-common/src/test/java/com/evolveum/midpoint/repo/common/tasks/handlers/composite/CompositeMockActivityHandler.java
    M repo/repo-common/src/test/java/com/evolveum/midpoint/repo/common/tasks/handlers/composite/MockClosingActivityExecution.java
    M repo/repo-common/src/test/java/com/evolveum/midpoint/repo/common/tasks/handlers/composite/MockComponentActivityExecution.java
    M repo/repo-common/src/test/java/com/evolveum/midpoint/repo/common/tasks/handlers/composite/MockOpeningActivityExecution.java

  Log Message:
  -----------
  Decouple state definition from activity execution

This is to manage activity state also for distributed activities.
(Like the resource objects reconciliation.)

Also created work state definition for reconciliation activities.


Compare: https://github.com/Evolveum/midpoint/compare/9f425f9a28ca%5E...36d6779b571a


More information about the midPoint-svn mailing list