Skip to content

Commit

Permalink
Issue #169 add federation extension to conformance classes
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jan 31, 2025
1 parent b7a5e03 commit c06f71f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The format is roughly based on [Keep a Changelog](https://keepachangelog.com/en/

## unreleased

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

## 0.41.0

- Remove concrete openEO Platform configs from generic repo ([#117](https://github.com/Open-EO/openeo-aggregator/issues/117))
Expand Down
2 changes: 2 additions & 0 deletions src/openeo_aggregator/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,6 +1472,8 @@ def __init__(self, backends: MultiBackendConnection):
public=True,
)

self._conformance_classes.append("https://api.openeo.org/extensions/federation/0.1.0")

def oidc_providers(self) -> List[OidcProvider]:
# Technically, this implementation is redundant given the parent implementation
# But keeping it allows for some additional tests
Expand Down
6 changes: 6 additions & 0 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ def test_deploy_metadata(self, api100):
capabilities = api100.get("/").assert_status_code(200).json
assert "openeo_aggregator" in capabilities["processing:software"]

def test_conformance_classes(self, api100):
capabilities = api100.get("/").assert_status_code(200).json
assert capabilities["conformsTo"] == dirty_equals.Contains(
"https://api.openeo.org/extensions/federation/0.1.0",
)

def test_only_oidc_auth(self, api100):
res = api100.get("/").assert_status_code(200)
capabilities = res.json
Expand Down

0 comments on commit c06f71f

Please sign in to comment.