-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also created convenience method AbstractModelIntegrationTest#initAndTestDummyResource (on DummyTestResource).
- Loading branch information
Showing
11 changed files
with
243 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
model/model-impl/src/test/resources/sync/resource-dummy-broken.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2018 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<resource oid="ba2099e5-7c6b-4742-a13a-0cbc476aeb01" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"> | ||
|
||
<name>resource-dummy-broken</name> | ||
<description>Dummy resource with broken correlation</description> | ||
<connectorRef type="c:ConnectorType"> | ||
<filter> | ||
<q:and> | ||
<q:equal> | ||
<q:path>connectorType</q:path> | ||
<q:value>com.evolveum.icf.dummy.connector.DummyConnector</q:value> | ||
</q:equal> | ||
<q:equal> | ||
<q:path>connectorVersion</q:path> | ||
<q:value>2.0</q:value> | ||
</q:equal> | ||
</q:and> | ||
</filter> | ||
</connectorRef> | ||
<connectorConfiguration xmlns:icfi="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.icf.dummy/com.evolveum.icf.dummy.connector.DummyConnector" | ||
xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3"> | ||
|
||
<icfc:configurationProperties> | ||
<icfi:instanceId>broken</icfi:instanceId> | ||
</icfc:configurationProperties> | ||
|
||
</connectorConfiguration> | ||
|
||
<schemaHandling> | ||
<objectType> | ||
<kind>account</kind> | ||
<intent>default</intent> | ||
<displayName>Default Account</displayName> | ||
<default>true</default> | ||
<objectClass>ri:AccountObjectClass</objectClass> | ||
</objectType> | ||
</schemaHandling> | ||
|
||
<synchronization> | ||
<objectSynchronization> | ||
<objectClass>ri:AccountObjectClass</objectClass> | ||
<kind>account</kind> | ||
<intent>default</intent> | ||
<correlationDefinition> | ||
<correlators> | ||
<expression> | ||
<documentation>All requests are rejected because the network service is down.</documentation> | ||
<owner> | ||
<script> | ||
<code> | ||
import com.evolveum.midpoint.util.exception.CommunicationException | ||
|
||
throw new CommunicationException('Circuit is broken') | ||
</code> | ||
</script> | ||
</owner> | ||
</expression> | ||
</correlators> | ||
</correlationDefinition> | ||
<reaction> | ||
<situation>linked</situation> | ||
<synchronize>true</synchronize> | ||
</reaction> | ||
<reaction> | ||
<situation>deleted</situation> | ||
<synchronize>true</synchronize> | ||
</reaction> | ||
<reaction> | ||
<situation>unlinked</situation> | ||
<synchronize>true</synchronize> | ||
<action> | ||
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#link</handlerUri> | ||
</action> | ||
</reaction> | ||
<reaction> | ||
<situation>unmatched</situation> | ||
<synchronize>true</synchronize> | ||
<action> | ||
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus</handlerUri> | ||
</action> | ||
</reaction> | ||
</objectSynchronization> | ||
</synchronization> | ||
</resource> |
24 changes: 24 additions & 0 deletions
24
model/model-impl/src/test/resources/sync/task-import-dummy-broken.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- | ||
~ Copyright (C) 2010-2022 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<task xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
oid="826071d1-5f8b-4d44-af0a-f0e7970f01a4"> | ||
<name>import-dummy-broken</name> | ||
<ownerRef oid="00000000-0000-0000-0000-000000000002" type="UserType" /> | ||
<executionState>runnable</executionState> | ||
<activity> | ||
<work> | ||
<import> | ||
<resourceObjects> | ||
<resourceRef oid="ba2099e5-7c6b-4742-a13a-0cbc476aeb01"/> | ||
<kind>account</kind> | ||
<intent>default</intent> | ||
</resourceObjects> | ||
</import> | ||
</work> | ||
</activity> | ||
</task> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.