-
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-8842 ninja - files for validation/upgrade
(cherry picked from commit bf1c187)
- Loading branch information
Showing
8 changed files
with
110 additions
and
16 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
...c/test/resources/upgrade/objects/case.xml → ...est/resources/validator/expected/case.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 |
---|---|---|
@@ -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> |
7 changes: 4 additions & 3 deletions
7
...st/resources/upgrade/objects/resource.xml → ...resources/validator/expected/resource.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
20 changes: 20 additions & 0 deletions
20
infra/schema/src/test/resources/validator/expected/role.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 @@ | ||
<!-- | ||
~ 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> |
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
72 changes: 72 additions & 0 deletions
72
infra/schema/src/test/resources/validator/expected/system-configuration.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,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> |
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
10 changes: 0 additions & 10 deletions
10
tools/ninja/src/test/resources/upgrade/objects/system-configuration.xml
This file was deleted.
Oops, something went wrong.