Closed Avarjana closed 2 years ago
PR builder started Link: https://github.com/wso2/product-is/actions/runs/2807557163
PR builder completed Link: https://github.com/wso2/product-is/actions/runs/2807557163 Status: failure
PR builder started Link: https://github.com/wso2/product-is/actions/runs/2815207246
PR builder completed Link: https://github.com/wso2/product-is/actions/runs/2815207246 Status: failure
Failed with
1 expectation failed.
JSON path findAll{ it.presentationName == 'TestWorkflowAddUserForRestTask' }.size() doesn't match.
Expected: is <3>
Actual: <2>
at org.wso2.identity.integration.test.rest.api.user.approval.v1.UserMeApprovalTest.testListTasksWhenAvailable(UserMeApprovalTest.java:141)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] org.wso2.identity.integration.test.rest.api.user.approval.v1.UserMeApprovalTest.testListTasksWhenAvailable(org.wso2.identity.integration.test.rest.api.user.approval.v1.UserMeApprovalTest)
[ERROR] Run 1: UserMeApprovalTest.testListTasksWhenAvailable:141 1 expectation failed.
JSON path findAll{ it.presentationName == 'TestWorkflowAddUserForRestTask' }.size() doesn't match.
Expected: is <3>
Actual: <2>
[INFO] Run 2: PASS
It is an intermittent test failure. Hence merging it
Purpose
Capture null values in the request and throw BadRequest 400 status instead of 500 ServerError.
{"Operations":[{"op":"replace","value":{"emails":[{"type":"work","value":"test@gmail.com"},null,{"type":"other","value":"test2@gmail.com"}]}}],"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"]}
{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Error in performing the replace operation","status":"500"}
{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"scimType":"invalidSyntax","detail":"Request is unparsable, syntactically incorrect, or violates schema.","status":"400"}
Fixes https://github.com/wso2/product-is/issues/14477