Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate value rest api operation - some fixes and support for polySt…
…ring and protectedString..added tests
- Loading branch information
Showing
9 changed files
with
168 additions
and
11 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
17 changes: 17 additions & 0 deletions
17
testing/rest/src/test/resources/repo/json/policy-generate-honorific-prefix-execute.json
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 @@ | ||
{ | ||
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3", | ||
"policyItemsDefinition": { | ||
"policyItemDefinition": [{ | ||
|
||
"target": { | ||
"path": "honorificPrefix" | ||
}, | ||
"valuePolicyRef": { | ||
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/common-3", | ||
"type": "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValuePolicyType", | ||
"oid": "81818181-76e0-0000-8888-3d4f02d3fffb" | ||
}, | ||
"execute" : "true" | ||
}] | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
testing/rest/src/test/resources/repo/json/policy-generate-password-execute.json
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,16 @@ | ||
{ | ||
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3", | ||
"policyItemsDefinition": { | ||
"policyItemDefinition": [{ | ||
"target": { | ||
"path": "credentials/password/value" | ||
}, | ||
"valuePolicyRef": { | ||
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/common-3", | ||
"type": "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValuePolicyType", | ||
"oid": "00000000-0000-0000-1111-000000000003" | ||
}, | ||
"execute" : "true" | ||
}] | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
testing/rest/src/test/resources/repo/xml/policy-generate-honorific-prefix-execute.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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<policyItemsDefinition xmlns="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3" | ||
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-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"> | ||
<policyItemDefinition> | ||
<c:target> | ||
<t:path>honorificPrefix</t:path> | ||
</c:target> | ||
<execute>true</execute> | ||
<c:valuePolicyRef oid="81818181-76e0-0000-8888-3d4f02d3fffb" type="c:ValuePolicyType"/> | ||
</policyItemDefinition> | ||
</policyItemsDefinition> |
15 changes: 15 additions & 0 deletions
15
testing/rest/src/test/resources/repo/xml/policy-generate-password-execute.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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<policyItemsDefinition xmlns="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3" | ||
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-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"> | ||
<policyItemDefinition> | ||
<c:target> | ||
<t:path>credentials/password/value</t:path> | ||
</c:target> | ||
<execute>true</execute> | ||
<c:valuePolicyRef oid="00000000-0000-0000-1111-000000000003" type="c:ValuePolicyType"/> | ||
</policyItemDefinition> | ||
</policyItemsDefinition> |
11 changes: 11 additions & 0 deletions
11
testing/rest/src/test/resources/repo/yaml/policy-generate-honorific-prefix-execute.yml
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,11 @@ | ||
'@ns': "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3" | ||
policyItemsDefinition: | ||
policyItemDefinition: | ||
- target: | ||
path: "honorificPrefix" | ||
valuePolicyRef: | ||
'@ns': "http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
type: "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValuePolicyType" | ||
oid: "81818181-76e0-0000-8888-3d4f02d3fffb" | ||
execute: true | ||
|
10 changes: 10 additions & 0 deletions
10
testing/rest/src/test/resources/repo/yaml/policy-generate-password-execute.yml
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,10 @@ | ||
'@ns': "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3" | ||
policyItemsDefinition: | ||
policyItemDefinition: | ||
- target: | ||
path: "credentials/password/value" | ||
valuePolicyRef: | ||
'@ns': "http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
type: "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValuePolicyType" | ||
oid: "00000000-0000-0000-1111-000000000003" | ||
execute: true |