Skip to content

Commit

Permalink
Fix REST tests
Browse files Browse the repository at this point in the history
This partially reverts changes by 9fbf3d1.
(And improves the tests to avoid illegal OIDs.)
  • Loading branch information
mederly committed Feb 20, 2024
1 parent 8705018 commit 924ccec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Expand Up @@ -1136,7 +1136,7 @@ public void test530ModifyValidToUsingScripting() throws Exception {
assertEquals("Wrong # of extractedResults", 2, extractedResults.size());

ItemProcessingResult<OperationSpecificData> first = extractedResults.get(0);
assertEquals("Wrong OID in first result", "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", first.oid);
assertEquals("Wrong OID in first result", "142f4a38-01d8-4864-8cb4-ea42a02b724e", first.oid);
assertEquals("Wrong status in first result", OperationResultStatusType.FATAL_ERROR, first.status);

ItemProcessingResult<OperationSpecificData> second = extractedResults.get(1);
Expand Down
Expand Up @@ -33,7 +33,7 @@
"value": [
{
"@type": "http://midpoint.evolveum.com/xml/ns/public/common/common-3#ObjectReferenceType",
"oid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"oid": "142f4a38-01d8-4864-8cb4-ea42a02b724e",
"type": "http://midpoint.evolveum.com/xml/ns/public/common/common-3#UserType"
},
{
Expand Down
Expand Up @@ -31,7 +31,8 @@
</s:action>
</s:pipeline>
<s:input>
<s:value xsi:type="c:ObjectReferenceType" oid="a9885c61-c442-42d8-af34-8182a8653e3c" type="UserType"/> <!-- jack -->
<s:value xsi:type="c:ObjectReferenceType" oid="142f4a38-01d8-4864-8cb4-ea42a02b724e" type="UserType"/> <!-- non-existing OID -->
<s:value xsi:type="c:ObjectReferenceType" oid="229487cb-59b6-490b-879d-7a6d925dd08c" type="UserType"/> <!-- jack -->
</s:input>
<s:options>
<s:continueOnAnyError>true</s:continueOnAnyError>
Expand Down
Expand Up @@ -18,7 +18,7 @@ executeScript:
input:
value:
- !<http://midpoint.evolveum.com/xml/ns/public/common/common-3/ObjectReferenceType>
oid: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
oid: 142f4a38-01d8-4864-8cb4-ea42a02b724e
type: "http://midpoint.evolveum.com/xml/ns/public/common/common-3#UserType"
- !<http://midpoint.evolveum.com/xml/ns/public/common/common-3/ObjectReferenceType>
oid: "229487cb-59b6-490b-879d-7a6d925dd08c"
Expand Down

0 comments on commit 924ccec

Please sign in to comment.