Skip to content

Commit

Permalink
Missing JSON files for REST tests
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Apr 11, 2018
1 parent bb59826 commit 18cebea
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 4 deletions.
Expand Up @@ -970,9 +970,8 @@ public void test506generateHonorificPrefixNameExecute() throws Exception {
private OperationResult traceResponse(Response response) throws SchemaException {
if (response.getStatus() != 200 && response.getStatus() != 201 && response.getStatus() != 204) {
OperationResultType result = response.readEntity(OperationResultType.class);
LOGGER.info("####RESULT");
OperationResult opResult = OperationResult.createOperationResult(result);
LOGGER.info(opResult.debugDump());
display("REST result", opResult);
return opResult;
}

Expand Down
@@ -0,0 +1,13 @@
{
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3",
"objectModification" : {
"itemDelta" : [{
"@ns": "http://prism.evolveum.com/xml/ns/public/types-3",
"modificationType" : "replace",
"path" : "credentials/securityQuestions/questionAnswer[1]/questionAnswer",
"value" : {
"clearValue" : "newAnswer"
}
}]
}
}
Expand Up @@ -4,9 +4,13 @@
"itemDelta" : [{
"@ns": "http://prism.evolveum.com/xml/ns/public/types-3",
"modificationType" : "replace",
"path" : "credentials/securityQuestions/questionAnswer[1]/questionAnswer",
"path" : "credentials/securityQuestions/questionAnswer",
"value" : {
"clearValue" : "newAnswer"
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/common-3",
"questionIdentifier" : "http://midpoint.evolveum.com/xml/ns/public/security/question-2#q001",
"questionAnswer" : {
"clearValue" : "you would not believe what happens next"
}
}
}]
}
Expand Down
@@ -0,0 +1,10 @@
{
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3",
"objectModification" : {
"itemDelta" : [{
"@ns": "http://prism.evolveum.com/xml/ns/public/types-3",
"modificationType" : "replace",
"path" : "credentials/securityQuestions/questionAnswer"
}]
}
}
@@ -0,0 +1,26 @@
{
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3",
"objectModification" : {
"itemDelta" : [{
"@ns": "http://prism.evolveum.com/xml/ns/public/types-3",
"modificationType" : "replace",
"path" : "credentials/securityQuestions/questionAnswer",
"value" : [
{
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/common-3",
"questionIdentifier" : "http://midpoint.evolveum.com/xml/ns/public/security/question-2#q001",
"questionAnswer" : {
"clearValue" : "yet another answer"
}
},
{
"@ns": "http://midpoint.evolveum.com/xml/ns/public/common/common-3",
"questionIdentifier" : "http://midpoint.evolveum.com/xml/ns/public/security/question-2#q002",
"questionAnswer" : {
"clearValue" : "42"
}
}
]
}]
}
}

0 comments on commit 18cebea

Please sign in to comment.