Skip to content

Commit

Permalink
New test for testsuite.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkow committed Mar 14, 2024
1 parent 6ae6b6d commit 29da555
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/test/resources/jsonpatch/testsuite.json
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,30 @@
} ] ] ]
},

{
"comment": "test, add, and replace fields",
"doc": {
"status": "pending",
"info": {
"name": "John Doe",
"age": 30
}
},
"patch": [
{"op": "test", "path": "/status", "value": "pending"},
{"op": "add", "path": "/info/email", "value": "johndoe@example.com"},
{"op": "replace", "path": "/info/age", "value": 31}
],
"expected": {
"status": "pending",
"info": {
"name": "John Doe",
"age": 31,
"email": "johndoe@example.com"
}
}
},

{
"comment": "tests complete"
}
Expand Down

0 comments on commit 29da555

Please sign in to comment.