Skip to content

Commit

Permalink
New test for testsuite.json 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkow committed Mar 22, 2024
1 parent 36c94c8 commit fe5e467
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 @@ -1251,6 +1251,30 @@
}
},

{
"comment": "Test removing and then adding a password in user credentials",
"doc": {
"user": {
"credentials": {
"username": "example_user",
"password": "old_password"
}
}
},
"patch": [
{"op": "remove", "path": "/user/credentials/password"},
{"op": "add", "path": "/user/credentials/password", "value": "new_password"}
],
"expected": {
"user": {
"credentials": {
"username": "example_user",
"password": "new_password"
}
}
}
},

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

0 comments on commit fe5e467

Please sign in to comment.