[midPoint-git] [Evolveum/midpoint] 557aea: Add TestVeryAuthoritativeSource

virgo47 noreply at github.com
Wed Mar 23 19:54:05 CET 2022


  Branch: refs/heads/support-4.4
  Home:   https://github.com/Evolveum/midpoint
  Commit: 557aea9e686f307537a8ad447d806c0e79c71d44
      https://github.com/Evolveum/midpoint/commit/557aea9e686f307537a8ad447d806c0e79c71d44
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-03-23 (Wed, 23 Mar 2022)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ContextLoadOperation.java
    A testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestVeryAuthoritativeSource.java
    A testing/story/src/test/resources/very-authoritative-source/resource-source.xml
    A testing/story/src/test/resources/very-authoritative-source/resource-target.xml
    A testing/story/src/test/resources/very-authoritative-source/role-target.xml
    A testing/story/src/test/resources/very-authoritative-source/system-configuration.xml
    A testing/story/src/test/resources/very-authoritative-source/task-reconciliation-source.xml
    A testing/story/src/test/resources/very-authoritative-source/template-delete-description.xml
    A testing/story/src/test/resources/very-authoritative-source/template-global.xml
    M testing/story/testng-integration.xml

  Log Message:
  -----------
  Add TestVeryAuthoritativeSource

This is a test for MID-7725.

(cherry picked from commit cd1464d777cf8dbcfe44e50d0b57c24f1361c061)


  Commit: f4a0fdef248372b3668aed83888deb2e27ea213f
      https://github.com/Evolveum/midpoint/commit/f4a0fdef248372b3668aed83888deb2e27ea213f
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-03-23 (Wed, 23 Mar 2022)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/executor/FocusChangeExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/ContextLoader.java
    M testing/story/src/test/resources/very-authoritative-source/template-delete-description.xml
    M testing/story/src/test/resources/very-authoritative-source/template-global.xml

  Log Message:
  -----------
  Reload lens context if there's a focus change

If the focus is changed during lens context loading - presumably
because of the discovery process - we will rot the context and re-load
it. This is to avoid continuing with the obsolete data, because that
can lead to inconsistent results, as demonstrated
by TestVeryAuthoritativeSource (and MID-7725).

This resolves MID-7725.

(cherry picked from commit bb2a191dc5f7353f2ccebc41e036ab22762f3462)


  Commit: ca4caf424a9b7070faa89b2b7d4bfb751ff153ca
      https://github.com/Evolveum/midpoint/commit/ca4caf424a9b7070faa89b2b7d4bfb751ff153ca
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-03-23 (Wed, 23 Mar 2022)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/ContextLoader.java

  Log Message:
  -----------
  Fix the max. # of lens context reload attempts

We don't want to leave the context rotten after too many attempts.

Related to MID-7725.

(cherry picked from commit 080c22c79f1911545687a1e6d33d57d2c08c9f94)


  Commit: b3b9ec90c4f19ee1b7d45da4a5e02443af7b80fa
      https://github.com/Evolveum/midpoint/commit/b3b9ec90c4f19ee1b7d45da4a5e02443af7b80fa
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-03-23 (Wed, 23 Mar 2022)

  Changed paths:
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java
    A model/model-test/src/main/java/com/evolveum/midpoint/model/test/ModelObjectImporterImpl.java
    M repo/repo-test-util/pom.xml
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java
    A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/ObjectImporter.java
    A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/ResourceTester.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/TaskFinishChecker.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/TestResource.java
    A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/TestSpringBeans.java
    A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/TestTask.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestVeryAuthoritativeSource.java

  Log Message:
  -----------
  Make TestVeryAuthoritativeSource work after backporting

Here we backport some necessary test facilities (like TestTask,
TestSpringBeans, and so on), in order to make backported
TestVeryAuthoritativeSource work.

Related to MID-7725.


  Commit: 3c797a14f076ea64a35838776d9acad24d8adde1
      https://github.com/Evolveum/midpoint/commit/3c797a14f076ea64a35838776d9acad24d8adde1
  Author: Richard Richter <richard.richter at evolveum.com>
  Date:   2022-03-23 (Wed, 23 Mar 2022)

  Changed paths:
    M testing/story/src/test/resources/very-authoritative-source/resource-source.xml
    M testing/story/src/test/resources/very-authoritative-source/resource-target.xml

  Log Message:
  -----------
  story: resource-source/target.xml reformat to satisfy our checkstyle

(cherry picked from commit da7b3070a0291e52936f3999d74b8663c3a40a8a)


Compare: https://github.com/Evolveum/midpoint/compare/0fd8bd7cb136...3c797a14f076


More information about the midPoint-svn mailing list