Skip to content

Commit

Permalink
MID-8842 ninja - files for validation/upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jul 14, 2023
1 parent eabeb9c commit bf1c187
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<case xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<case xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
oid="10a2c2b4-4d02-4f52-a4ac-092d8e321006">

<name>case</name>
<taskRef oid="0e5b7304-ea5c-438e-84d1-2b0ce40517ce"/>
</case>
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<resource xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3">
xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3"
oid="5b55729f-8866-442a-b39d-c5a9def5b345">

<name>resource</name>
<name>Invalid resource</name>

<capabilities>
<native>
<cap:addRemoveAttributeValues/>
</native>
<configured>
<cap:addRemoveAttributeValues>
<cap:enabled>true</cap:enabled>
<cap:enabled>false</cap:enabled>
</cap:addRemoveAttributeValues>
</configured>
</capabilities>
Expand Down
20 changes: 20 additions & 0 deletions infra/schema/src/test/resources/validator/expected/role.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--
~ Copyright (C) 2010-2023 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="f4244705-69a7-4602-95ad-6a4ad7beddb7">

<name>role</name>

<assignment id="1">
<personaConstruction>
<targetType>some-type</targetType>
<targetSubtype>some-subtype</targetSubtype>
</personaConstruction>
</assignment>

</role>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->

<securityPolicy xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
oid="28676177-5884-4625-805d-bae552932666">
oid="28676177-5884-4625-805d-bae552932666">

<name>security policy</name>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!--
~ Copyright (C) 2010-2023 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
-->
<systemConfiguration xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
oid="3947d3b1-b6e8-46ec-b382-1bde67da6f07">

<name>system-configuration</name>

<roleManagement/>

<notificationConfiguration>
<!--<sms>
<gateway>
<urlExpression>
<script>
<code>
return 'one.example'
</code>
</script>
</urlExpression>
</gateway>
</sms>
<sms>
<redirectToFile>redirected.log</redirectToFile>
<blackList>blacklisted@example.com</blackList>
<debug>true</debug>
<logToFile>log.log</logToFile>
<recipientFilterExpression>
<script>
<code>
return null
</code>
</script>
</recipientFilterExpression>
<whiteList>whitelisted@example.com</whiteList>
<gateway>
<method>get</method>
<urlExpression>
<script>
<code>
return 'example.com'
</code>
</script>
</urlExpression>
<username>user</username>
<password>pass</password>
</gateway>
</sms>-->
</notificationConfiguration>

<adminGuiConfiguration>
<userDashboardLink>
<targetUrl>https://google.com</targetUrl>
</userDashboardLink>
<accessRequest>
<roleCatalog>
<roleCatalogRef oid="0e5b7304-ea5c-438e-84d1-2b0ce40517ce" type="OrgType"/>
<collection>
<identifier>allRoles</identifier>
<collectionUri>allRoles</collectionUri>
</collection>
<collection>
<identifier>myCustomCollection</identifier>
<collectionUri>myCustomCollection</collectionUri>
</collection>
</roleCatalog>
</accessRequest>
</adminGuiConfiguration>
</systemConfiguration>
2 changes: 2 additions & 0 deletions infra/schema/src/test/resources/validator/processor/role.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<role xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
oid="f4244705-69a7-4602-95ad-6a4ad7beddb7">

<name>role</name>

<assignment id="1">
<personaConstruction>
<targetType>some-type</targetType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<systemConfiguration xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
oid="3947d3b1-b6e8-46ec-b382-1bde67da6f07">

<name>system-configuration</name>

<notificationConfiguration>
<!--<sms>
<gateway>
Expand Down Expand Up @@ -58,4 +60,10 @@
</collection>
</roleCatalogCollections>
</roleManagement>

<adminGuiConfiguration>
<userDashboardLink>
<targetUrl>https://google.com</targetUrl>
</userDashboardLink>
</adminGuiConfiguration>
</systemConfiguration>

This file was deleted.

0 comments on commit bf1c187

Please sign in to comment.