-
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.
MID-6610 test written, no assertions yet
- Loading branch information
Showing
6 changed files
with
205 additions
and
19 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
80 changes: 80 additions & 0 deletions
80
model/model-intest/src/test/resources/preview/resource-simple.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,80 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
|
||
<resource xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" | ||
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" | ||
oid="64d8b7f9-28a0-43a9-bec7-d5a1a327a740"> | ||
|
||
<name>resource-preview-simple</name> | ||
|
||
<connectorRef type="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>resource-preview-simple</icfi:instanceId> | ||
<icfi:requireExplicitEnable>true</icfi:requireExplicitEnable> | ||
<icfi:uselessGuardedString> | ||
<clearValue>whatever</clearValue> | ||
</icfi:uselessGuardedString> | ||
<icfi:uselessString>Useless</icfi:uselessString> | ||
<icfi:varyLetterCase>false</icfi:varyLetterCase> | ||
</icfc:configurationProperties> | ||
|
||
<icfc:resultsHandlerConfiguration> | ||
<icfc:enableNormalizingResultsHandler>false</icfc:enableNormalizingResultsHandler> | ||
<icfc:enableFilteredResultsHandler>false</icfc:enableFilteredResultsHandler> | ||
<icfc:enableAttributesToGetSearchResultsHandler>false</icfc:enableAttributesToGetSearchResultsHandler> | ||
</icfc:resultsHandlerConfiguration> | ||
|
||
</connectorConfiguration> | ||
|
||
<schemaHandling> | ||
<objectType> | ||
<kind>account</kind> | ||
<intent>default</intent> | ||
<displayName>Default Account</displayName> | ||
<default>true</default> | ||
<objectClass>ri:AccountObjectClass</objectClass> | ||
|
||
<attribute> | ||
<ref>icfs:name</ref> | ||
<outbound> | ||
<source> | ||
<path>name</path> | ||
</source> | ||
</outbound> | ||
</attribute> | ||
<attribute> | ||
<ref>icfs:uid</ref> | ||
</attribute> | ||
<credentials> | ||
<password> | ||
<outbound/> | ||
</password> | ||
</credentials> | ||
|
||
<securityPolicyRef oid="a013bf3e-68b2-42b7-923e-c4d55e40e486"/> | ||
</objectType> | ||
</schemaHandling> | ||
</resource> |
17 changes: 17 additions & 0 deletions
17
model/model-intest/src/test/resources/preview/role-simple.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,17 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
|
||
<role xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
oid="e681fa58-cf53-452d-99d0-4f1377a06a54"> | ||
<name>role simple</name> | ||
<inducement> | ||
<construction> | ||
<resourceRef oid="64d8b7f9-28a0-43a9-bec7-d5a1a327a740"/> | ||
<kind>account</kind> | ||
</construction> | ||
</inducement> | ||
</role> |
18 changes: 18 additions & 0 deletions
18
model/model-intest/src/test/resources/preview/security-policy.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,18 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
|
||
<securityPolicy xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
oid="a013bf3e-68b2-42b7-923e-c4d55e40e486"> | ||
|
||
<name>security policy for resource simple</name> | ||
|
||
<credentials> | ||
<password> | ||
<valuePolicyRef oid="fd0d70ea-ef5a-4e20-8bf0-3b367ff85f1c"/> | ||
</password> | ||
</credentials> | ||
</securityPolicy> |
20 changes: 20 additions & 0 deletions
20
model/model-intest/src/test/resources/preview/user-joe.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,20 @@ | ||
<?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. | ||
--> | ||
<user xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
oid="33f7ec34-4d5e-4640-8224-eb7d55ed86fa"> | ||
|
||
<name>joe</name> | ||
|
||
<credentials> | ||
<password> | ||
<value> | ||
<clearValue>qwe123</clearValue> | ||
</value> | ||
</password> | ||
</credentials> | ||
</user> |
19 changes: 19 additions & 0 deletions
19
model/model-intest/src/test/resources/preview/value-policy-password.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,19 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
|
||
<valuePolicy xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
oid="fd0d70ea-ef5a-4e20-8bf0-3b367ff85f1c"> | ||
<name>Password policy</name> | ||
<stringPolicy> | ||
<description>Testing string policy</description> | ||
<limitations> | ||
<minLength>15</minLength> | ||
<maxLength>18</maxLength> | ||
</limitations> | ||
</stringPolicy> | ||
</valuePolicy> | ||
|