The user's access token is available and added to the Postman headers.
Steps to Reproduce
Choose the PATCH method in Postman.
Add the endpoint {server}/users/{user_id} in the URL field, replacing {server} with the actual server address and {user_id} with the user's ID.
In the Body tab, select the raw type and set the data format to JSON.
Enter the following test data in the body:
{
"firstName": "@nn@",
"lastName": "Map!a"
}
Send the request.
Actual Result:
Status code 204 No Content is returned.
The user's information is updated successfully in the system, but no content is returned in the response body.
Expected Result:
Status code 400 Bad Request is returned.
The system rejects the update because the test data (firstName and lastName containing numeric values) violates the validation rules for the user's information.
Environment:
Reproducible: always.
Precondition:
Steps to Reproduce
Actual Result: Status code 204 No Content is returned. The user's information is updated successfully in the system, but no content is returned in the response body.
Expected Result: Status code 400 Bad Request is returned. The system rejects the update because the test data (firstName and lastName containing numeric values) violates the validation rules for the user's information.
User story -#2693