[midPoint-git] [Evolveum/midpoint] 84c1a4: Roll back use of model-level resolver in tests

mederly noreply at github.com
Tue Mar 12 22:51:00 CET 2024


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 84c1a46a172cd109cca1af18c6eb37dae676ab67
      https://github.com/Evolveum/midpoint/commit/84c1a46a172cd109cca1af18c6eb37dae676ab67
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-03-12 (Tue, 12 Mar 2024)

  Changed paths:
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestEntitlements.java
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java

  Log Message:
  -----------
  Roll back use of model-level resolver in tests

Introduced in 554eb0f3846cb99793e51ded5180a61f5aa5d5b8, the
default use of model-level object resolver (used mainly for
shadows) was not a great idea. A number of tests rely on
the "no fetch" resolution.

Hence, now it's rolled back. If needed, it has to be turned
on explicitly, like this:

assertUserAfter(userOid)
------> .withObjectResolver(createSimpleModelObjectResolver())
        .singleLink()
        .resolveTarget()
        .associations()
        .assertSize(1)
        ...

This should fix failing tests.



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