Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Focus iteration tests (still work in progress)
- Loading branch information
Showing
6 changed files
with
370 additions
and
6 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
107 changes: 107 additions & 0 deletions
107
model/model-intest/src/test/resources/iteration/resource-dummy-dark-violet.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,107 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2014 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<!-- This is resource similar to violet but it works in the inbound direction --> | ||
|
||
<resource oid="10000000-0000-0000-0000-0000000da204" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-2a" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-2a" | ||
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-2" | ||
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-2" | ||
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-2" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-2" | ||
xmlns:piracy="http://midpoint.evolveum.com/xml/ns/samples/piracy" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
|
||
<name>Dummy Resource Dark Violet</name> | ||
<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-2"> | ||
|
||
<icfc:configurationProperties> | ||
<icfi:instanceId>darkViolet</icfi:instanceId> <!-- Default instance. --> | ||
<icfi:requireExplicitEnable>true</icfi:requireExplicitEnable> | ||
</icfc:configurationProperties> | ||
|
||
</connectorConfiguration> | ||
|
||
<schemaHandling> | ||
<objectType> | ||
<kind>account</kind> | ||
<intent>default</intent> | ||
<displayName>Default Account</displayName> | ||
<default>true</default> | ||
<objectClass>ri:AccountObjectClass</objectClass> | ||
<attribute> | ||
<ref>ri:fullname</ref> | ||
<displayName>Full Name</displayName> | ||
<inbound> | ||
<target> | ||
<path>nickName</path> | ||
</target> | ||
</inbound> | ||
</attribute> | ||
</objectType> | ||
</schemaHandling> | ||
|
||
<synchronization> | ||
<objectSynchronization> | ||
<enabled>true</enabled> | ||
<objectTemplateRef oid="10000000-0000-0000-0000-0000000d0002"/> | ||
<reaction> | ||
<situation>linked</situation> | ||
<synchronize>true</synchronize> | ||
</reaction> | ||
<reaction> | ||
<situation>deleted</situation> | ||
<synchronize>true</synchronize> | ||
<action> | ||
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-2#deleteFocus</handlerUri> | ||
</action> | ||
</reaction> | ||
<reaction> | ||
<situation>unlinked</situation> | ||
<synchronize>true</synchronize> | ||
<action> | ||
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-2#link</handlerUri> | ||
</action> | ||
</reaction> | ||
<reaction> | ||
<situation>unmatched</situation> | ||
<synchronize>true</synchronize> | ||
<action> | ||
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-2#addFocus</handlerUri> | ||
</action> | ||
</reaction> | ||
</objectSynchronization> | ||
</synchronization> | ||
|
||
</resource> |
38 changes: 38 additions & 0 deletions
38
model/model-intest/src/test/resources/iteration/task-dumy-dark-violet-livesync.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,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2013 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<task oid="10000000-0000-0000-5555-555500da0204" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-2a" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-2a" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<name>Live Sync: Dark Violet Dummy Resource</name> | ||
|
||
<taskIdentifier>10000000-0000-0000-5555-555500da0404</taskIdentifier> | ||
<ownerRef oid="00000000-0000-0000-0000-000000000002"/> | ||
<executionStatus>runnable</executionStatus> | ||
|
||
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/synchronization/task/live-sync/handler-2</handlerUri> | ||
<objectRef oid="10000000-0000-0000-0000-0000000da204" type="c:ResourceType"/> | ||
<recurrence>recurring</recurrence> | ||
<binding>tight</binding> | ||
<schedule> | ||
<interval>1</interval> | ||
</schedule> | ||
|
||
</task> |
Oops, something went wrong.