Skip to content

Commit

Permalink
Issue #173 fix compatibility with openeo-driver 0.126
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Feb 12, 2025
1 parent 593aa4c commit c02a028
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The format is roughly based on [Keep a Changelog](https://keepachangelog.com/en/

- Add "openEO Federation Extension" to conformance classes ([#169](https://github.com/Open-EO/openeo-aggregator/issues/169))
- Update to openeo python client version 0.38.0 ([#170](https://github.com/Open-EO/openeo-aggregator/issues/170))
- Fix compatibility with openeo-driver 0.126 ([#173](https://github.com/Open-EO/openeo-aggregator/issues/173))


## 0.41.0

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"requests",
"attrs",
"openeo>=0.38.0",
"openeo_driver>=0.123.0.dev,<0.125.0",
"openeo_driver>=0.126.1.dev",
"flask~=2.0",
"gunicorn~=20.0",
"python-json-logger>=2.0.0",
Expand Down
2 changes: 2 additions & 0 deletions tests/partitionedjobs/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def test_create_job_failed_backend(self, api100, zk_db, requests_mock, dummy1):

res = api100.get(f"/jobs/{expected_job_id}/logs").assert_status_code(200)
assert res.json == {
"level": "debug",
"logs": [{"id": "0000-0", "level": "error", "message": approx_str_contains("NoJobIdForSubJob")}],
"links": [],
}
Expand Down Expand Up @@ -449,6 +450,7 @@ def test_get_logs(self, api100, requests_mock, dummy1):

res = api100.get(f"/jobs/{expected_job_id}/logs").assert_status_code(200)
assert res.json == {
"level": "debug",
"logs": [{"id": "0000-123", "level": "info", "message": "Created job. You're welcome."}],
"links": [],
}
Expand Down
2 changes: 2 additions & 0 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2334,6 +2334,7 @@ def get_logs(request, context):
api100.set_auth_bearer_token(token=TEST_USER_BEARER_TOKEN)
res = api100.get("/jobs/b1-th3j0b/logs").assert_status_code(200).json
assert res == {
"level": "debug",
"logs": [
{"id": "_1", "level": "info", "message": "hello"},
{"id": "_11", "level": "info", "message": "hello"},
Expand All @@ -2343,6 +2344,7 @@ def get_logs(request, context):

res = api100.get("/jobs/b1-th3j0b/logs?offset=3").assert_status_code(200).json
assert res == {
"level": "debug",
"logs": [
{"id": "31", "level": "info", "message": "hello"},
{"id": "311", "level": "info", "message": "hello"},
Expand Down

0 comments on commit c02a028

Please sign in to comment.