Skip to content

Commit 4733584

Browse files
Update http-examples to Plone 6.2.
* Some json files get an extra "context" url. * "lock" is no longer an empty dict, but `{"locked": false, "stealable": true}` * `plone.app.layout` has a GS profile now. See also plone/plone.classicui#23
1 parent 1bcd4ea commit 4733584

8 files changed

+35
-5
lines changed

src/plone/restapi/tests/http-examples/404_not_found.resp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ HTTP/1.1 404 Not Found
22
Content-Type: application/json
33

44
{
5+
"context": "http://localhost:55001/plone",
56
"message": "Resource not found: http://localhost:55001/plone/non-existing-resource",
67
"type": "NotFound"
78
}

src/plone/restapi/tests/http-examples/navroot_lang_content_get.resp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ Content-Type: application/json
2424
"token": "en"
2525
},
2626
"layout": "folder_listing",
27-
"lock": {},
27+
"lock": {
28+
"locked": false,
29+
"stealable": true
30+
},
2831
"modified": "1995-07-31T17:30:00+00:00",
2932
"next_item": {},
3033
"parent": {

src/plone/restapi/tests/http-examples/navroot_lang_folder_get.resp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ Content-Type: application/json
2424
"token": "en"
2525
},
2626
"layout": "folder_listing",
27-
"lock": {},
27+
"lock": {
28+
"locked": false,
29+
"stealable": true
30+
},
2831
"modified": "1995-07-31T17:30:00+00:00",
2932
"next_item": {},
3033
"parent": {

src/plone/restapi/tests/http-examples/relations_del_anonymous.resp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ HTTP/1.1 401 Unauthorized
22
Content-Type: application/json
33

44
{
5+
"context": "http://localhost:55001/plone",
56
"message": "You are not authorized to access this resource.",
67
"type": "Unauthorized"
78
}

src/plone/restapi/tests/http-examples/relations_post_anonyous.resp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ HTTP/1.1 401 Unauthorized
22
Content-Type: application/json
33

44
{
5+
"context": "http://localhost:55001/plone",
56
"message": "You are not authorized to access this resource.",
67
"type": "Unauthorized"
78
}

src/plone/restapi/tests/http-examples/site_get_expand_lang_folder.resp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ Content-Type: application/json
4141
"token": "en"
4242
},
4343
"layout": "folder_listing",
44-
"lock": {},
44+
"lock": {
45+
"locked": false,
46+
"stealable": true
47+
},
4548
"modified": "1995-07-31T17:30:00+00:00",
4649
"next_item": {},
4750
"parent": {
@@ -111,7 +114,10 @@ Content-Type: application/json
111114
"token": "en"
112115
},
113116
"layout": "folder_listing",
114-
"lock": {},
117+
"lock": {
118+
"locked": false,
119+
"stealable": true
120+
},
115121
"modified": "1995-07-31T17:30:00+00:00",
116122
"next_item": {},
117123
"parent": {

src/plone/restapi/tests/http-examples/site_get_expand_lang_folder_content.resp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ Content-Type: application/json
4141
"token": "en"
4242
},
4343
"layout": "folder_listing",
44-
"lock": {},
44+
"lock": {
45+
"locked": false,
46+
"stealable": true
47+
},
4548
"modified": "1995-07-31T17:30:00+00:00",
4649
"next_item": {},
4750
"parent": {

src/plone/restapi/tests/http-examples/translated_messages_addons.resp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ Content-Type: application/json
7575
"upgrade_info": {},
7676
"version": "1.2.3"
7777
},
78+
{
79+
"@id": "http://localhost:55001/plone/@addons/plone.app.layout",
80+
"description": "Installs the plone.app.layout add-on.",
81+
"id": "plone.app.layout",
82+
"install_profile_id": "plone.app.layout:default",
83+
"is_installed": false,
84+
"profile_type": "default",
85+
"title": "plone.app.layout",
86+
"uninstall_profile_id": "plone.app.layout:uninstall",
87+
"upgrade_info": {},
88+
"version": "1.2.3"
89+
},
7890
{
7991
"@id": "http://localhost:55001/plone/@addons/plone.app.multilingual",
8092
"description": "Instalar para activar el soporte de contenido multiling\u00fce con plone.app.multilingual",

0 commit comments

Comments
 (0)