From fe5e467d64779152ae4cc7abe53a0fa330f6883c Mon Sep 17 00:00:00 2001 From: "adam.lenkowski" Date: Fri, 22 Mar 2024 11:25:43 +0100 Subject: [PATCH] New test for testsuite.json 7.0 --- src/test/resources/jsonpatch/testsuite.json | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/test/resources/jsonpatch/testsuite.json b/src/test/resources/jsonpatch/testsuite.json index 2415ec3..f74497d 100644 --- a/src/test/resources/jsonpatch/testsuite.json +++ b/src/test/resources/jsonpatch/testsuite.json @@ -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" }