[midPoint-git] [Evolveum/midpoint] adc0ed: Extend TestTrustedBulkActions

KaterynaHonchar noreply at github.com
Mon Aug 21 11:23:23 CEST 2023


  Branch: refs/heads/feature/forgot-username
  Home:   https://github.com/Evolveum/midpoint
  Commit: adc0ed8c71974cb14b8de255f60584ea8d1ccb74
      https://github.com/Evolveum/midpoint/commit/adc0ed8c71974cb14b8de255f60584ea8d1ccb74
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/ExpressionProfileManager.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/ExecutionContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/ScriptingExpressionEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/AbstractExecuteExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/BaseActionExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/DiscoverConnectorsExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/ReencryptExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/ValidateExecutor.java
    A testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestTrustedBulkActions.java
    R testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestTrustedScripts.java
    A testing/story/src/test/resources/trusted-bulk-actions/archetype-little-trusted-task.xml
    A testing/story/src/test/resources/trusted-bulk-actions/archetype-trusted-role.xml
    A testing/story/src/test/resources/trusted-bulk-actions/archetype-trusted-task.xml
    A testing/story/src/test/resources/trusted-bulk-actions/function-library-one.xml
    A testing/story/src/test/resources/trusted-bulk-actions/role-unprivileged.xml
    A testing/story/src/test/resources/trusted-bulk-actions/role-with-scripting-action.xml
    A testing/story/src/test/resources/trusted-bulk-actions/system-configuration.xml
    A testing/story/src/test/resources/trusted-bulk-actions/task-template-scripting-little-trusted-run-privileged.xml
    A testing/story/src/test/resources/trusted-bulk-actions/task-template-scripting-little-trusted.xml
    A testing/story/src/test/resources/trusted-bulk-actions/task-template-scripting-no-profile.xml
    A testing/story/src/test/resources/trusted-bulk-actions/task-template-scripting-trusted.xml
    A testing/story/src/test/resources/trusted-bulk-actions/user-joe.xml
    R testing/story/src/test/resources/trusted-scripts/archetype-little-trusted-task.xml
    R testing/story/src/test/resources/trusted-scripts/archetype-trusted-task.xml
    R testing/story/src/test/resources/trusted-scripts/function-library-one.xml
    R testing/story/src/test/resources/trusted-scripts/role-unprivileged.xml
    R testing/story/src/test/resources/trusted-scripts/system-configuration.xml
    R testing/story/src/test/resources/trusted-scripts/task-template-scripting-little-trusted.xml
    R testing/story/src/test/resources/trusted-scripts/task-template-scripting-no-profile.xml
    R testing/story/src/test/resources/trusted-scripts/task-template-scripting-trusted.xml
    R testing/story/src/test/resources/trusted-scripts/user-joe.xml
    M testing/story/testng-integration.xml

  Log Message:
  -----------
  Extend TestTrustedBulkActions

The "run privileged" library function as well as bulk actions usage
in policy rule were added.

Also, operation result handling in bulk action executor was fixed.


  Commit: 0cfaf883639820e1eef5d25783675d574976747b
      https://github.com/Evolveum/midpoint/commit/0cfaf883639820e1eef5d25783675d574976747b
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/BulkActionProfile.java
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/BulkActionsProfile.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/ExpressionProfile.java
    R infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/ScriptingActionProfile.java
    R infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/ScriptingProfile.java
    M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/ExpressionProfileManager.java
    M model/model-common/src/test/java/com/evolveum/midpoint/model/common/expression/script/AbstractScriptTest.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestExpressionProfiles.java
    M model/model-intest/src/test/resources/profiles/system-configuration.xml
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/ExpressionProfileCompiler.java
    M testing/story/src/test/resources/trusted-bulk-actions/system-configuration.xml

  Log Message:
  -----------
  Fix expression profiles naming

"Bulk actions" is now official term, so we'll use it instead of
"midPoint scripting language". This commit deals with the renaming
in the area of expression profiles.


  Commit: ba2712e5a81c412d1832398fb0fa68c9057eb4e8
      https://github.com/Evolveum/midpoint/commit/ba2712e5a81c412d1832398fb0fa68c9057eb4e8
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd

  Log Message:
  -----------
  Update XSD docs (minor)


  Commit: a29dc0ad2d5f580273a5e6f6379ef77dd23fd427
      https://github.com/Evolveum/midpoint/commit/a29dc0ad2d5f580273a5e6f6379ef77dd23fd427
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/ExpressionProfile.java
    M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd
    M model/model-common/src/test/java/com/evolveum/midpoint/model/common/expression/script/AbstractScriptTest.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestExpressionProfiles.java
    A model/model-intest/src/test/resources/profiles/archetype-no-privilege-elevation.xml
    A model/model-intest/src/test/resources/profiles/role-no-elevation-assignment-target-search-filter.xml
    M model/model-intest/src/test/resources/profiles/system-configuration.xml
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/Expression.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/ExpressionProfileCompiler.java

  Log Message:
  -----------
  Add "privilegeElevation" in expression profile

Currently, it is checked only for expressions, not for scripting policy
actions.


  Commit: 330e0d20aa239222b0ada935f5390d9274caa1c1
      https://github.com/Evolveum/midpoint/commit/330e0d20aa239222b0ada935f5390d9274caa1c1
  Author: Viliam Repan <vilo.repan at evolveum.com>
  Date:   2023-08-19 (Sat, 19 Aug 2023)

  Changed paths:
    M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd

  Log Message:
  -----------
  MID-8842 ninja - removed deprecation from assignment constraints type


  Commit: 151ac0050f9bf7fb07e9bf2f880035f344cd3d28
      https://github.com/Evolveum/midpoint/commit/151ac0050f9bf7fb07e9bf2f880035f344cd3d28
  Author: Viliam Repan <vilo.repan at evolveum.com>
  Date:   2023-08-19 (Sat, 19 Aug 2023)

  Changed paths:
    R infra/schema/src/main/java/com/evolveum/midpoint/schema/validator/processor/DefaultAssignmentConstraintsProcessor.java
    M infra/schema/src/test/java/com/evolveum/midpoint/schema/validator/processor/TestUpgradeProcessors.java

  Log Message:
  -----------
  MID-8842 ninja - removed processor for assignment constraints type, fixed tests


  Commit: 2479b85917a2ebee495ff67a212c4c411d220583
      https://github.com/Evolveum/midpoint/commit/2479b85917a2ebee495ff67a212c4c411d220583
  Author: Kateryna Honchar <honchar at evolveum.com>
  Date:   2023-08-21 (Mon, 21 Aug 2023)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/BulkActionProfile.java
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/BulkActionsProfile.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/ExpressionProfile.java
    R infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/ScriptingActionProfile.java
    R infra/schema/src/main/java/com/evolveum/midpoint/schema/expression/ScriptingProfile.java
    R infra/schema/src/main/java/com/evolveum/midpoint/schema/validator/processor/DefaultAssignmentConstraintsProcessor.java
    M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd
    M infra/schema/src/test/java/com/evolveum/midpoint/schema/validator/processor/TestUpgradeProcessors.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/ExpressionProfileManager.java
    M model/model-common/src/test/java/com/evolveum/midpoint/model/common/expression/script/AbstractScriptTest.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/ExecutionContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/ScriptingExpressionEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/AbstractExecuteExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/BaseActionExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/DiscoverConnectorsExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/ReencryptExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/ValidateExecutor.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestExpressionProfiles.java
    A model/model-intest/src/test/resources/profiles/archetype-no-privilege-elevation.xml
    A model/model-intest/src/test/resources/profiles/role-no-elevation-assignment-target-search-filter.xml
    M model/model-intest/src/test/resources/profiles/system-configuration.xml
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/Expression.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/ExpressionProfileCompiler.java
    A testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestTrustedBulkActions.java
    R testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestTrustedScripts.java
    A testing/story/src/test/resources/trusted-bulk-actions/archetype-little-trusted-task.xml
    A testing/story/src/test/resources/trusted-bulk-actions/archetype-trusted-role.xml
    A testing/story/src/test/resources/trusted-bulk-actions/archetype-trusted-task.xml
    A testing/story/src/test/resources/trusted-bulk-actions/function-library-one.xml
    A testing/story/src/test/resources/trusted-bulk-actions/role-unprivileged.xml
    A testing/story/src/test/resources/trusted-bulk-actions/role-with-scripting-action.xml
    A testing/story/src/test/resources/trusted-bulk-actions/system-configuration.xml
    A testing/story/src/test/resources/trusted-bulk-actions/task-template-scripting-little-trusted-run-privileged.xml
    A testing/story/src/test/resources/trusted-bulk-actions/task-template-scripting-little-trusted.xml
    A testing/story/src/test/resources/trusted-bulk-actions/task-template-scripting-no-profile.xml
    A testing/story/src/test/resources/trusted-bulk-actions/task-template-scripting-trusted.xml
    A testing/story/src/test/resources/trusted-bulk-actions/user-joe.xml
    R testing/story/src/test/resources/trusted-scripts/archetype-little-trusted-task.xml
    R testing/story/src/test/resources/trusted-scripts/archetype-trusted-task.xml
    R testing/story/src/test/resources/trusted-scripts/function-library-one.xml
    R testing/story/src/test/resources/trusted-scripts/role-unprivileged.xml
    R testing/story/src/test/resources/trusted-scripts/system-configuration.xml
    R testing/story/src/test/resources/trusted-scripts/task-template-scripting-little-trusted.xml
    R testing/story/src/test/resources/trusted-scripts/task-template-scripting-no-profile.xml
    R testing/story/src/test/resources/trusted-scripts/task-template-scripting-trusted.xml
    R testing/story/src/test/resources/trusted-scripts/user-joe.xml
    M testing/story/testng-integration.xml

  Log Message:
  -----------
  Merge branch 'master' into feature/forgot-username


Compare: https://github.com/Evolveum/midpoint/compare/47c546b4ceb1...2479b85917a2


More information about the midPoint-svn mailing list