Skip to content

Commit c02a028

Browse files
committed
Issue #173 fix compatibility with openeo-driver 0.126
1 parent 593aa4c commit c02a028

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The format is roughly based on [Keep a Changelog](https://keepachangelog.com/en/
1010

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

1416
## 0.41.0
1517

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"requests",
3636
"attrs",
3737
"openeo>=0.38.0",
38-
"openeo_driver>=0.123.0.dev,<0.125.0",
38+
"openeo_driver>=0.126.1.dev",
3939
"flask~=2.0",
4040
"gunicorn~=20.0",
4141
"python-json-logger>=2.0.0",

tests/partitionedjobs/test_api.py

+2
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def test_create_job_failed_backend(self, api100, zk_db, requests_mock, dummy1):
239239

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

450451
res = api100.get(f"/jobs/{expected_job_id}/logs").assert_status_code(200)
451452
assert res.json == {
453+
"level": "debug",
452454
"logs": [{"id": "0000-123", "level": "info", "message": "Created job. You're welcome."}],
453455
"links": [],
454456
}

tests/test_views.py

+2
Original file line numberDiff line numberDiff line change
@@ -2334,6 +2334,7 @@ def get_logs(request, context):
23342334
api100.set_auth_bearer_token(token=TEST_USER_BEARER_TOKEN)
23352335
res = api100.get("/jobs/b1-th3j0b/logs").assert_status_code(200).json
23362336
assert res == {
2337+
"level": "debug",
23372338
"logs": [
23382339
{"id": "_1", "level": "info", "message": "hello"},
23392340
{"id": "_11", "level": "info", "message": "hello"},
@@ -2343,6 +2344,7 @@ def get_logs(request, context):
23432344

23442345
res = api100.get("/jobs/b1-th3j0b/logs?offset=3").assert_status_code(200).json
23452346
assert res == {
2347+
"level": "debug",
23462348
"logs": [
23472349
{"id": "31", "level": "info", "message": "hello"},
23482350
{"id": "311", "level": "info", "message": "hello"},

0 commit comments

Comments
 (0)