[midPoint-git] [Evolveum/midpoint] 10d882: Add a test for MID-10271

mederly noreply at github.com
Fri Dec 6 22:17:01 CET 2024


  Branch: refs/heads/support-4.9
  Home:   https://github.com/Evolveum/midpoint
  Commit: 10d882b2292f0083e7a12e2500119546b4a56ec3
      https://github.com/Evolveum/midpoint/commit/10d882b2292f0083e7a12e2500119546b4a56ec3
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-12-06 (Fri, 06 Dec 2024)

  Changed paths:
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/associations/TestAssociations.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/dummys/DummyAdTrivialScenario.java
    A model/model-intest/src/test/resources/associations/archetype-ad3-role-A.xml
    A model/model-intest/src/test/resources/associations/archetype-ad3-role-B.xml
    A model/model-intest/src/test/resources/associations/resource-dummy-ad3-mixed-groups.xml
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/FocusAsserter.java

  Log Message:
  -----------
  Add a test for MID-10271

(The test currently finds nothing, unfortunately.)

(cherry picked from commit f10344c9e66c303ca07336cc9e2bf1b63df4fd9d)


  Commit: 61f234fa7832de52664c72d233ad0492c3a1accd
      https://github.com/Evolveum/midpoint/commit/61f234fa7832de52664c72d233ad0492c3a1accd
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-12-06 (Fri, 06 Dec 2024)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ShadowReferenceAttributesCollection.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/evaluator/AbstractSearchExpressionEvaluator.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/evaluator/AssociationTargetSearchExpressionEvaluator.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/associations/TestAssociations.java
    M model/model-intest/src/test/resources/associations/archetype-ad3-role-A.xml
    M model/model-intest/src/test/resources/associations/archetype-ad3-role-B.xml
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/AssociationsHelper.java

  Log Message:
  -----------
  Improve the test for MID-10271

Now it finally reproduces the issue.

(cherry picked from commit a7d6e528e2347a0db02138815c6feeec282d829a)


  Commit: a8735f02ce0157e3f5fd5f39366efc64366f48d5
      https://github.com/Evolveum/midpoint/commit/a8735f02ce0157e3f5fd5f39366efc64366f48d5
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-12-06 (Fri, 06 Dec 2024)

  Changed paths:
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/associations/TestAssociations.java
    M provisioning/ucf-impl-connid/src/main/java/com/evolveum/midpoint/provisioning/ucf/impl/connid/AbstractModificationConverter.java
    M provisioning/ucf-impl-connid/src/main/java/com/evolveum/midpoint/provisioning/ucf/impl/connid/ConnIdObjectConvertor.java
    M provisioning/ucf-impl-connid/src/main/java/com/evolveum/midpoint/provisioning/ucf/impl/connid/ConnectorInstanceConnIdImpl.java
    M provisioning/ucf-impl-connid/src/main/java/com/evolveum/midpoint/provisioning/ucf/impl/connid/DeltaModificationConverter.java

  Log Message:
  -----------
  Fix UCF->ConnId conversion for referenced objects

The original algorithm for converting midPoint (UCF) objects to ConnId
was too eager: it converted the whole structure of connected objects
in full. This was useless, and sometimes lead to failures - when
referenced objects contained unresolved references.

Now we convert only what is strictly required: root object and embedded
objects in full, but only the identifiers for referenced objects.

This resolves MID-10271.

(cherry picked from commit b88b596e62cc15916010c3c3f5dcf1f7e562648e)


Compare: https://github.com/Evolveum/midpoint/compare/122c8b9719b6...a8735f02ce01

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