Skip to content

Commit

Permalink
Issue #195 Flag 1.2 API version as production ready
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Nov 20, 2023
1 parent 7d2b335 commit 9f5361c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ and start a new "In Progress" section above it.

## In progress

## 0.77.4

- Flag `/openeo/1.2` API version as production ready ([#195](https://github.com/Open-EO/openeo-python-driver/issues/195))

## 0.77.2

- fixup "polygons" argument of "apply_polygon" ([#229](https://github.com/Open-EO/openeo-python-driver/issues/229))
Expand Down
2 changes: 1 addition & 1 deletion openeo_driver/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.77.3a1"
__version__ = "0.77.4a1"
6 changes: 3 additions & 3 deletions openeo_driver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
"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),
"1": ApiVersionInfo(version="1.1.0", supported=True, wellknown=False, production=True),
"1.2": ApiVersionInfo(version="1.2.0", supported=True, wellknown=True, production=True),
"1": ApiVersionInfo(version="1.2.0", supported=True, wellknown=False, production=True),
}
API_VERSION_DEFAULT = "1.1"
API_VERSION_DEFAULT = "1.2"

_log.info("API Versions: {v}".format(v=API_VERSIONS))
_log.info("Default API Version: {v}".format(v=API_VERSION_DEFAULT))
Expand Down
6 changes: 3 additions & 3 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_well_known_openeo(self, client):
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.2.0": {"api_version": "1.2.0", "production": False, "url": "http://oeo.net/openeo/1.2/"},
"1.2.0": {"api_version": "1.2.0", "production": True, "url": "http://oeo.net/openeo/1.2/"},
}
assert resp.headers["Cache-Control"] == "max-age=900, public"

Expand All @@ -162,8 +162,8 @@ def test_https_proxy_handling(self, client, headers, expected):
("/openeo/1.1/", "1.1.0"),
("/openeo/1.1.0/", "1.1.0"),
("/openeo/1.2/", "1.2.0"),
("/openeo/1/", "1.1.0"),
("/openeo/", "1.1.0"),
("/openeo/1/", "1.2.0"),
("/openeo/", "1.2.0"),
],
)
def test_versioned_urls(self, client, url, expected_version):
Expand Down

0 comments on commit 9f5361c

Please sign in to comment.