Skip to content

Commit

Permalink
testing/rest: fixes of role/employeeType -> subtype
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Sep 26, 2021
1 parent fcfb9ed commit d226e9a
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"policyItemDefinition": [
{
"target": {
"path": "employeeType"
"path": "subtype"
},
"valuePolicyRef": {
"type": "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValuePolicyType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"activation" : {
"administrativeStatus" : "enabled"
},
"employeeType" : ["user", "123user", "employeE"],
"subtype" : ["user", "123user", "employeE"],
"employeeNumber" : "123456",
"organization" : ["Org1", "Org2", "Org3"],
"fullName" : "Darth Adder",
Expand Down
4 changes: 2 additions & 2 deletions testing/rest/src/test/resources/repo/resource-opendj.xml
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,13 @@ This is now the only account type that midPoint can work with. -->

</attribute>
<attribute>
<ref>ri:employeeType</ref>
<ref>ri:subtype</ref>
<displayName>Employee Type</displayName>

<outbound>
<strength>weak</strength>
<source>
<path>$user/employeeType</path>
<path>$user/subtype</path>
</source>
</outbound>
</attribute>
Expand Down
2 changes: 1 addition & 1 deletion testing/rest/src/test/resources/repo/role-enduser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,5 @@
</object>
<item>approvalContext</item>
</authorization>
<roleType>system</roleType>
<subtype>system</subtype>
</role>
2 changes: 1 addition & 1 deletion testing/rest/src/test/resources/repo/role-proxy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<type>UserType</type>
<filter>
<q:equal>
<q:path>employeeType</q:path>
<q:path>subtype</q:path>
<q:value>enduser</q:value>
</q:equal>
</filter>
Expand Down
2 changes: 1 addition & 1 deletion testing/rest/src/test/resources/repo/user-egoist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<c:fullName>Self Seeker</c:fullName>
<c:givenName>Self</c:givenName>
<c:familyName>Seeker</c:familyName>
<c:employeeType>enduser</c:employeeType>
<c:subtype>enduser</c:subtype>
<c:credentials xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<c:password>
<c:value xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
Expand Down
2 changes: 1 addition & 1 deletion testing/rest/src/test/resources/repo/user-head.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<c:fullName>Head of Heads</c:fullName>
<c:givenName>Head</c:givenName>
<c:familyName>of Heads</c:familyName>
<c:employeeType>superuser</c:employeeType>
<c:subtype>superuser</c:subtype>
<c:credentials xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<c:password>
<c:value xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
Expand Down
2 changes: 1 addition & 1 deletion testing/rest/src/test/resources/repo/user-somebody.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<c:fullName>Some Body</c:fullName>
<c:givenName>Some</c:givenName>
<c:familyName>body</c:familyName>
<c:employeeType>enduser</c:employeeType>
<c:subtype>enduser</c:subtype>
<c:credentials xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<c:password>
<c:value xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">
<policyItemDefinition>
<target>
<path>employeeType</path>
<path>subtype</path>
</target>
<valuePolicyRef oid="00000000-0000-0000-1111-000000000003" type="c:ValuePolicyType"/>
</policyItemDefinition>
Expand Down
6 changes: 3 additions & 3 deletions testing/rest/src/test/resources/repo/xml/user-darthadder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
<c:fullName>Darth Adder</c:fullName>
<c:givenName>Darth</c:givenName>
<c:familyName>Adder</c:familyName>
<c:employeeType>user</c:employeeType>
<c:employeeType>123user</c:employeeType>
<c:employeeType>employeE</c:employeeType>
<c:subtype>user</c:subtype>
<c:subtype>123user</c:subtype>
<c:subtype>employeE</c:subtype>
<c:employeeNumber>123456</c:employeeNumber>
<c:organization>Org1</c:organization>
<c:organization>Org2</c:organization>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
policyItemsDefinition:
policyItemDefinition:
- target:
path: "employeeType"
path: "subtype"
valuePolicyRef:
type: "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValuePolicyType"
oid: "00000000-0000-0000-1111-000000000003"
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ user:
fullName: "Darth Adder"
givenName: "Darth"
familyName: "Adder"
employeeType :
subtype :
- "user"
- "123user"
- "employeE"
Expand Down

0 comments on commit d226e9a

Please sign in to comment.