Skip to content

Commit c06f71f

Browse files
committed
Issue #169 add federation extension to conformance classes
1 parent b7a5e03 commit c06f71f

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CHANGELOG.md

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

99
## unreleased
1010

11+
- Add "openEO Federation Extension" to conformance classes ([#169](https://github.com/Open-EO/openeo-aggregator/issues/169))
12+
1113
## 0.41.0
1214

1315
- Remove concrete openEO Platform configs from generic repo ([#117](https://github.com/Open-EO/openeo-aggregator/issues/117))

src/openeo_aggregator/backend.py

+2
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,8 @@ def __init__(self, backends: MultiBackendConnection):
14721472
public=True,
14731473
)
14741474

1475+
self._conformance_classes.append("https://api.openeo.org/extensions/federation/0.1.0")
1476+
14751477
def oidc_providers(self) -> List[OidcProvider]:
14761478
# Technically, this implementation is redundant given the parent implementation
14771479
# But keeping it allows for some additional tests

tests/test_views.py

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ def test_deploy_metadata(self, api100):
7676
capabilities = api100.get("/").assert_status_code(200).json
7777
assert "openeo_aggregator" in capabilities["processing:software"]
7878

79+
def test_conformance_classes(self, api100):
80+
capabilities = api100.get("/").assert_status_code(200).json
81+
assert capabilities["conformsTo"] == dirty_equals.Contains(
82+
"https://api.openeo.org/extensions/federation/0.1.0",
83+
)
84+
7985
def test_only_oidc_auth(self, api100):
8086
res = api100.get("/").assert_status_code(200)
8187
capabilities = res.json

0 commit comments

Comments
 (0)