Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests for modification of metarole and recompute.
- Loading branch information
Showing
7 changed files
with
257 additions
and
8 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
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
23 changes: 23 additions & 0 deletions
23
model/model-intest/src/test/resources/rbac/role-bloody-fool.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,23 @@ | ||
<!-- | ||
~ Copyright (c) 2016 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. | ||
--> | ||
<role oid="0a0ac150-af3d-11e6-9901-67fbcbd5bb25" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"> | ||
<name>Bloody Fool</name> | ||
<assignment> | ||
<!-- Fool metarole --> | ||
<targetRef oid="2edc5fe4-af3c-11e6-a81e-eb332578ec4f" type="RoleType"/> | ||
</assignment> | ||
</role> |
89 changes: 89 additions & 0 deletions
89
model/model-intest/src/test/resources/rbac/role-meta-fool.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,89 @@ | ||
<!-- | ||
~ Copyright (c) 2016 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. | ||
--> | ||
<role oid="2edc5fe4-af3c-11e6-a81e-eb332578ec4f" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance/10000000-0000-0000-0000-000000000004" | ||
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" | ||
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"> | ||
<name>Fool Metaroler</name> | ||
<inducement id="10001"> | ||
<construction> | ||
<resourceRef oid="10000000-0000-0000-0000-000000000004"/> | ||
<kind>account</kind> | ||
<attribute> | ||
<ref>ri:title</ref> | ||
<outbound> | ||
<strength>strong</strength> | ||
<expression> | ||
<value>Fool</value> | ||
</expression> | ||
</outbound> | ||
</attribute> | ||
<association> | ||
<ref>ri:group</ref> | ||
<outbound> | ||
<strength>strong</strength> | ||
<expression> | ||
<associationTargetSearch> | ||
<filter> | ||
<q:equal> | ||
<q:path>attributes/icfs:name</q:path> | ||
<q:value>fools</q:value> | ||
</q:equal> | ||
</filter> | ||
<searchStrategy>onResourceIfNeeded</searchStrategy> | ||
</associationTargetSearch> | ||
</expression> | ||
</outbound> | ||
</association> | ||
</construction> | ||
<focusType>UserType</focusType> | ||
<order>2</order> | ||
</inducement> | ||
<inducement id="10002"> | ||
<construction> | ||
<resourceRef oid="10000000-0000-0000-0000-000000000004"/> | ||
<kind>account</kind> | ||
<attribute> | ||
<ref>ri:title</ref> | ||
<outbound> | ||
<expression> | ||
<value>Simpleton</value> | ||
</expression> | ||
</outbound> | ||
</attribute> | ||
<association> | ||
<ref>ri:group</ref> | ||
<outbound> | ||
<strength>strong</strength> | ||
<expression> | ||
<associationTargetSearch> | ||
<filter> | ||
<q:equal> | ||
<q:path>attributes/icfs:name</q:path> | ||
<q:value>simpletons</q:value> | ||
</q:equal> | ||
</filter> | ||
<searchStrategy>onResourceIfNeeded</searchStrategy> | ||
</associationTargetSearch> | ||
</expression> | ||
</outbound> | ||
</association> | ||
</construction> | ||
<focusType>UserType</focusType> | ||
<order>2</order> | ||
</inducement> | ||
</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