Skip to content

Commit 9f5361c

Browse files
committed
Issue #195 Flag 1.2 API version as production ready
1 parent 7d2b335 commit 9f5361c

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ and start a new "In Progress" section above it.
1919

2020
## In progress
2121

22+
## 0.77.4
23+
24+
- Flag `/openeo/1.2` API version as production ready ([#195](https://github.com/Open-EO/openeo-python-driver/issues/195))
25+
2226
## 0.77.2
2327

2428
- fixup "polygons" argument of "apply_polygon" ([#229](https://github.com/Open-EO/openeo-python-driver/issues/229))

openeo_driver/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.77.3a1"
1+
__version__ = "0.77.4a1"

openeo_driver/views.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
"1.0.1": ApiVersionInfo(version="1.0.1", supported=True, wellknown=False, production=True),
5050
"1.1.0": ApiVersionInfo(version="1.1.0", supported=True, wellknown=False, production=False),
5151
"1.1": ApiVersionInfo(version="1.1.0", supported=True, wellknown=True, production=True),
52-
"1.2": ApiVersionInfo(version="1.2.0", supported=True, wellknown=True, production=False),
53-
"1": ApiVersionInfo(version="1.1.0", supported=True, wellknown=False, production=True),
52+
"1.2": ApiVersionInfo(version="1.2.0", supported=True, wellknown=True, production=True),
53+
"1": ApiVersionInfo(version="1.2.0", supported=True, wellknown=False, production=True),
5454
}
55-
API_VERSION_DEFAULT = "1.1"
55+
API_VERSION_DEFAULT = "1.2"
5656

5757
_log.info("API Versions: {v}".format(v=API_VERSIONS))
5858
_log.info("Default API Version: {v}".format(v=API_VERSION_DEFAULT))

tests/test_views.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_well_known_openeo(self, client):
138138
assert by_api_version == {
139139
"1.0.0": {"api_version": "1.0.0", "production": True, "url": "http://oeo.net/openeo/1.0/"},
140140
"1.1.0": {"api_version": "1.1.0", "production": True, "url": "http://oeo.net/openeo/1.1/"},
141-
"1.2.0": {"api_version": "1.2.0", "production": False, "url": "http://oeo.net/openeo/1.2/"},
141+
"1.2.0": {"api_version": "1.2.0", "production": True, "url": "http://oeo.net/openeo/1.2/"},
142142
}
143143
assert resp.headers["Cache-Control"] == "max-age=900, public"
144144

@@ -162,8 +162,8 @@ def test_https_proxy_handling(self, client, headers, expected):
162162
("/openeo/1.1/", "1.1.0"),
163163
("/openeo/1.1.0/", "1.1.0"),
164164
("/openeo/1.2/", "1.2.0"),
165-
("/openeo/1/", "1.1.0"),
166-
("/openeo/", "1.1.0"),
165+
("/openeo/1/", "1.2.0"),
166+
("/openeo/", "1.2.0"),
167167
],
168168
)
169169
def test_versioned_urls(self, client, url, expected_version):

0 commit comments

Comments
 (0)