Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use checkout on 5.2, normalise http-examples [7xx] #1218

Merged
merged 12 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ allow-hosts =
code.google.com
robotframework.googlecode.com

[versions]
# Do not use a release of plone.restapi:
plone.restapi =

[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
Expand Down Expand Up @@ -70,7 +74,6 @@ initialization =
# necessary to explicitly call time.tzset().
import time
time.tzset()
os.environ['ZSERVER_PORT'] = '55001'
defaults = ['-s', 'plone.restapi', '--auto-color', '--auto-progress']

[coverage]
Expand Down
10 changes: 0 additions & 10 deletions buildout.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
[buildout]
extends = plone-5.2.x.cfg
versions=versions

[versions]
plone.restapi =

plone.schema = 1.3.0
plone.dexterity = 2.9.8

# 3.0 drops python2 compatibility
pyroma = 2.6.1
3 changes: 3 additions & 0 deletions news/1213.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fix testing of a checkout instead of a released package.
Normalize the http-examples.
[maurits]
5 changes: 1 addition & 4 deletions plone-4.3.x.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[buildout]
extends =
base.cfg
https://dist.plone.org/release/4.3.20/versions.cfg
base.cfg
versions.cfg

[versions]
Expand Down Expand Up @@ -29,9 +29,6 @@ pyrsistent = 0.15.7
# Error: The requirement ('distlib<1,>=0.3.1') is not allowed by your [versions] constraint (0.3.0)
distlib = 0.3.1

# plone.restapi specific pins
plone.restapi =

# Improvements to the JSONField
plone.schema = 1.3.0

Expand Down
3 changes: 1 addition & 2 deletions plone-5.0.x.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[buildout]
extends =
base.cfg
http://dist.plone.org/release/5.0.10/versions.cfg
base.cfg
versions.cfg

[versions]
plone.restapi =
plone.schema = 1.2.1
pytz = 2017.3
zope.interface = 4.1.0
Expand Down
5 changes: 1 addition & 4 deletions plone-5.1.x.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[buildout]
extends =
base.cfg
https://dist.plone.org/release/5.1.7/versions.cfg
base.cfg
versions.cfg

[versions]
Expand Down Expand Up @@ -34,8 +34,5 @@ Jinja2 = 2.10
Babel = 2.5.1
astunparse = 1.6.2

# plone.restapi specific pins
plone.restapi =

# Improvements to the JSONField
plone.schema = 1.3.0
3 changes: 0 additions & 3 deletions plone-5.2.x-performance.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ profiles =
plone.app.contenttypes:plone-content
plone.restapi:performance
site-replace = True

[versions]
plone.restapi =
16 changes: 1 addition & 15 deletions plone-5.2.x.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[buildout]
extends =
https://dist.plone.org/release/5.2.5/versions.cfg
base.cfg
https://dist.plone.org/release/5.2.4/versions.cfg
find-links += https://dist.plone.org/thirdparty/
versions=versions

Expand All @@ -11,19 +11,5 @@ black = 20.8b1
# Error: The requirement ('virtualenv>=20.0.35') is not allowed by your [versions] constraint (20.0.26)
virtualenv = 20.0.35

# Error: The requirement ('pep517>=0.9') is not allowed by your [versions] constraint (0.8.2)
pep517 = 0.9.1

# Error: The requirement ('importlib-metadata>=1') is not allowed by your [versions] constraint (0.23)
importlib-metadata = 2.0.0

# cryptography 3.4 requires a rust compiler installed on the system:
# https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#34---2021-02-07
cryptography = 3.3.2

# cffi 1.14.3 fails on apple m1
cffi = 1.14.4

# requirement for json widget tests to pass
plone.schema = 1.3.0
plone.dexterity = 2.9.8
mauritsvanrees marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 3 additions & 3 deletions src/plone/restapi/tests/http-examples/404_not_found.resp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ HTTP/1.1 404 Not Found
Content-Type: application/json

{
"message": "Resource not found: http://localhost:55001/plone/non-existing-resource",
"type": "NotFound"
}
"message": "Resource not found: http://localhost:55001/plone/non-existing-resource",
"type": "NotFound"
}
92 changes: 46 additions & 46 deletions src/plone/restapi/tests/http-examples/batching.resp
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,49 @@ HTTP/1.1 200 OK
Content-Type: application/json

{
"@id": "http://localhost:55001/plone/folder/@search",
"batching": {
"@id": "http://localhost:55001/plone/folder/@search?b_size=5&sort_on=path",
"first": "http://localhost:55001/plone/folder/@search?b_start=0&b_size=5&sort_on=path",
"last": "http://localhost:55001/plone/folder/@search?b_start=5&b_size=5&sort_on=path",
"next": "http://localhost:55001/plone/folder/@search?b_start=5&b_size=5&sort_on=path"
},
"items": [
{
"@id": "http://localhost:55001/plone/folder",
"@type": "Folder",
"description": "",
"review_state": "private",
"title": "Folder"
},
{
"@id": "http://localhost:55001/plone/folder/doc-1",
"@type": "Document",
"description": "",
"review_state": "private",
"title": "Document 1"
},
{
"@id": "http://localhost:55001/plone/folder/doc-2",
"@type": "Document",
"description": "",
"review_state": "private",
"title": "Document 2"
},
{
"@id": "http://localhost:55001/plone/folder/doc-3",
"@type": "Document",
"description": "",
"review_state": "private",
"title": "Document 3"
},
{
"@id": "http://localhost:55001/plone/folder/doc-4",
"@type": "Document",
"description": "",
"review_state": "private",
"title": "Document 4"
}
],
"items_total": 8
}
"@id": "http://localhost:55001/plone/folder/@search",
"batching": {
"@id": "http://localhost:55001/plone/folder/@search?b_size=5&sort_on=path",
"first": "http://localhost:55001/plone/folder/@search?b_start=0&b_size=5&sort_on=path",
"last": "http://localhost:55001/plone/folder/@search?b_start=5&b_size=5&sort_on=path",
"next": "http://localhost:55001/plone/folder/@search?b_start=5&b_size=5&sort_on=path"
},
"items": [
{
"@id": "http://localhost:55001/plone/folder",
"@type": "Folder",
"description": "",
"review_state": "private",
"title": "Folder"
},
{
"@id": "http://localhost:55001/plone/folder/doc-1",
"@type": "Document",
"description": "",
"review_state": "private",
"title": "Document 1"
},
{
"@id": "http://localhost:55001/plone/folder/doc-2",
"@type": "Document",
"description": "",
"review_state": "private",
"title": "Document 2"
},
{
"@id": "http://localhost:55001/plone/folder/doc-3",
"@type": "Document",
"description": "",
"review_state": "private",
"title": "Document 3"
},
{
"@id": "http://localhost:55001/plone/folder/doc-4",
"@type": "Document",
"description": "",
"review_state": "private",
"title": "Document 4"
}
],
"items_total": 8
}
18 changes: 9 additions & 9 deletions src/plone/restapi/tests/http-examples/breadcrumbs.resp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ HTTP/1.1 200 OK
Content-Type: application/json

{
"@id": "http://localhost:55001/plone/front-page/@breadcrumbs",
"items": [
{
"@id": "http://localhost:55001/plone/front-page",
"title": "Welcome to Plone"
}
],
"root": "http://localhost:55001/plone"
}
"@id": "http://localhost:55001/plone/front-page/@breadcrumbs",
"items": [
{
"@id": "http://localhost:55001/plone/front-page",
"title": "Welcome to Plone"
}
],
"root": "http://localhost:55001/plone"
}
Loading