Skip to content

Commit

Permalink
Issue #195 enable /openeo/1.2/ API root (experimental, non-producti…
Browse files Browse the repository at this point in the history
…on-ready)
  • Loading branch information
soxofaan committed Jun 15, 2023
1 parent 065166a commit 7d1741f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openeo_driver/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.55.0a1"
__version__ = "0.56.0a1"
1 change: 1 addition & 0 deletions openeo_driver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"1.0.1": ApiVersionInfo(version="1.0.1", supported=True, wellknown=False, production=True),
"1.1.0": ApiVersionInfo(version="1.1.0", supported=True, wellknown=False, production=False),
"1.1": ApiVersionInfo(version="1.1.0", supported=True, wellknown=True, production=True),
"1.2": ApiVersionInfo(version="1.2.0", supported=True, wellknown=True, production=False),
}
API_VERSION_DEFAULT = "1.1.0"

Expand Down
5 changes: 3 additions & 2 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def test_well_known_openeo(self, client):
by_api_version = {d["api_version"]: d for d in versions}
assert len(versions) == len(by_api_version)
assert by_api_version == {
"1.0.0": {'api_version': '1.0.0', 'production': True, 'url': 'http://oeo.net/openeo/1.0/'},
"1.1.0": {'api_version': '1.1.0', 'production': True, 'url': 'http://oeo.net/openeo/1.1/'},
"1.0.0": {"api_version": "1.0.0", "production": True, "url": "http://oeo.net/openeo/1.0/"},
"1.1.0": {"api_version": "1.1.0", "production": True, "url": "http://oeo.net/openeo/1.1/"},
"1.2.0": {"api_version": "1.2.0", "production": False, "url": "http://oeo.net/openeo/1.2/"},
}
assert resp.headers["Cache-Control"] == "max-age=900, public"

Expand Down

0 comments on commit 7d1741f

Please sign in to comment.