Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some fixes for rpc generate/validate value... adding more tests
- Loading branch information
Showing
15 changed files
with
197 additions
and
49 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
11 changes: 11 additions & 0 deletions
11
testing/rest/src/test/resources/repo/json/policy-generate-explicit.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,11 @@ | ||
{ | ||
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3", | ||
"policyItemsDefinition": { | ||
"policyItemDefinition": [{ | ||
"valuePolicyRef": { | ||
"type": "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValuePolicyType", | ||
"oid": "00000000-0000-0000-1111-000000000003" | ||
} | ||
}] | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
testing/rest/src/test/resources/repo/json/policy-validate-explicit-no-value-policy.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,10 @@ | ||
{ | ||
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3", | ||
"policyItemsDefinition": { | ||
"policyItemDefinition": [ | ||
{ | ||
"value": "Ad123456" | ||
} | ||
] | ||
} | ||
} |
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
11 changes: 11 additions & 0 deletions
11
testing/rest/src/test/resources/repo/xml/policy-generate-explicit.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,11 @@ | ||
<?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> | ||
<valuePolicyRef oid="00000000-0000-0000-1111-000000000003" type="c:ValuePolicyType"/> | ||
</policyItemDefinition> | ||
</policyItemsDefinition> |
12 changes: 12 additions & 0 deletions
12
testing/rest/src/test/resources/repo/xml/policy-validate-explicit-no-value-policy.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,12 @@ | ||
<?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> | ||
<value>Ad123456</value> | ||
</policyItemDefinition> | ||
|
||
</policyItemsDefinition> |
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
6 changes: 6 additions & 0 deletions
6
testing/rest/src/test/resources/repo/yaml/policy-generate-explicit.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,6 @@ | ||
'@ns': "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3" | ||
policyItemsDefinition: | ||
policyItemDefinition: | ||
- valuePolicyRef: | ||
type: "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValuePolicyType" | ||
oid: "00000000-0000-0000-1111-000000000003" |
4 changes: 4 additions & 0 deletions
4
testing/rest/src/test/resources/repo/yaml/policy-validate-explicit-no-value-policy.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,4 @@ | ||
'@ns': "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3" | ||
policyItemsDefinition: | ||
policyItemDefinition: | ||
- value: "Ad123456" |
4 changes: 1 addition & 3 deletions
4
testing/rest/src/test/resources/repo/yaml/policy-validate-explicit.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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
'@ns': "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3" | ||
policyItemsDefinition: | ||
policyItemDefinition: | ||
- target: | ||
path: "employeeNumber" | ||
valuePolicyRef: | ||
- valuePolicyRef: | ||
type: "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValuePolicyType" | ||
oid: "00000000-0000-0000-1111-000000000003" | ||
value: "123456" |