Skip to content

Commit 735f468

Browse files
committed
tests: test the patch samples validation
1 parent d68b183 commit 735f468

5 files changed

Lines changed: 7 additions & 17 deletions

‎samples/rfc7644-3.5.2.1-patch_op-add_members.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"value": [
1010
{
1111
"display": "Babs Jensen",
12-
"$ref": "https://example.com/v2/Users/2819c223...413861904646",
12+
"$ref": "https://example.com/v2/Users/2819c223-7f76-453a-919d-413861904646",
1313
"value": "2819c223-7f76-453a-919d-413861904646"
1414
}
1515
]

‎samples/rfc7644-3.5.2.2-patch_op-remove_and_add_one_member.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"Operations": [
66
{
77
"op": "remove",
8-
"path": "members[value eq\"2819c223...919d-413861904646\"]"
8+
"path": "members[value eq\"2819c223-7f76-453a-919d-413861904646\"]"
99
},
1010
{
1111
"op": "add",
1212
"path": "members",
1313
"value": [
1414
{
1515
"display": "James Smith",
16-
"$ref": "https://example.com/v2/Users/08e1d05d...473d93df9210",
17-
"value": "08e1d05d...473d93df9210"
16+
"$ref": "https://example.com/v2/Users/08e1d05d-121c-4561-8b96-473d93df9210",
17+
"value": "08e1d05d-121c-4561-8b96-473d93df9210"
1818
}
1919
]
2020
}

‎samples/rfc7644-3.5.2.2-patch_op-remove_one_member.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"Operations": [
66
{
77
"op": "remove",
8-
"path": "members[value eq \"2819c223-7f76-...413861904646\"]"
8+
"path": "members[value eq \"2819c223-7f76-453a-919d-413861904646\"]"
99
}
1010
]
1111
}

‎samples/rfc7644-3.5.2.3-patch_op-replace_all_members.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"value": [
1414
{
1515
"display": "Babs Jensen",
16-
"$ref": "https://example.com/v2/Users/2819c223...413861904646",
16+
"$ref": "https://example.com/v2/Users/2819c223-7f76-453a-919d-413861904646",
1717
"value": "2819c223-7f76-453a-919d-413861904646"
1818
},
1919
{
2020
"display": "James Smith",
21-
"$ref": "https://example.com/v2/Users/08e1d05d...473d93df9210",
21+
"$ref": "https://example.com/v2/Users/08e1d05d-121c-4561-8b96-473d93df9210",
2222
"value": "08e1d05d-121c-4561-8b96-473d93df9210"
2323
}
2424
]

‎tests/test_models.py‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,6 @@ def test_parse_and_serialize_examples(load_sample):
6464
"rfc7644-3.7.3-bulk_response-error_invalid_syntax.json",
6565
"rfc7644-3.7.3-bulk_response-multiple_errors.json",
6666
"rfc7644-3.7.3-bulk_response-multiple_operations.json",
67-
"rfc7644-3.5.2.1-patch_op-add_emails.json",
68-
"rfc7644-3.5.2.1-patch_op-add_members.json",
69-
"rfc7644-3.5.2.2-patch_op-remove_all_members.json",
70-
"rfc7644-3.5.2.2-patch_op-remove_and_add_one_member.json",
71-
"rfc7644-3.5.2.2-patch_op-remove_multi_complex_value.json",
72-
"rfc7644-3.5.2.2-patch_op-remove_one_member.json",
73-
"rfc7644-3.5.2.3-patch_op-replace_all_email_values.json",
74-
"rfc7644-3.5.2.3-patch_op-replace_all_members.json",
75-
"rfc7644-3.5.2.3-patch_op-replace_street_address.json",
76-
"rfc7644-3.5.2.3-patch_op-replace_user_work_address.json",
7767
]
7868
if sample in skipped:
7969
continue

0 commit comments

Comments
 (0)