Skip to content

Commit b1389bb

Browse files
committed
fix: fixes to sen2like records
1 parent e535bf3 commit b1389bb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

algorithm_catalog/eodc/sen2like/benchmark_scenarios/sen2like.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"process_graph": {
88
"ardsen2like": {
99
"process_id": "sen2like",
10-
"namespace": "https://raw.githubusercontent.com/ESA-APEx/apex_algorithms/refs/heads/sen2like/algorithm_catalog/eodc/sen2like/openeo_udp/sen2like.json",
10+
"namespace": "https://raw.githubusercontent.com/ESA-APEx/apex_algorithms/refs/heads/main/algorithm_catalog/eodc/sen2like/openeo_udp/sen2like.json",
1111
"arguments": {
1212
"spatial_extent": {
1313
"east": 16.414,

qa/tools/apex_algorithm_qa_tools/scenarios.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,14 @@ def lint_benchmark_scenario(scenario: BenchmarkScenario):
9696
# TODO #17 raise descriptive exceptions instead of asserts?
9797
assert re.match(r"^[a-zA-Z0-9_-]+$", scenario.id)
9898
# TODO proper allow-list of backends or leave this freeform?
99-
assert scenario.backend in [
100-
"openeo.dataspace.copernicus.eu",
101-
"openeofed.dataspace.copernicus.eu",
102-
"openeo.cloud",
103-
"openeo.vito.be",
99+
backend_patterns = [
100+
r"^(https:\/\/)?openeo\.dataspace\.copernicus\.eu(\/.*)?$",
101+
r"^(https:\/\/)?openeofed\.dataspace\.copernicus\.eu(\/.*)?$",
102+
r"^(https:\/\/)?openeo\.cloud(\/.*)?$",
103+
r"^(https:\/\/)?openeo\.vito\.be(\/.*)?$",
104+
r"^(https:\/\/)?openeo\.eodc\.eu(\/.*)?$",
104105
]
106+
assert any(re.fullmatch(p, scenario.backend) for p in backend_patterns), f"Unsupported backend: {scenario.backend!r}"
105107
# TODO: more advanced process graph validation?
106108
assert isinstance(scenario.process_graph, dict)
107109
for node_id, node in scenario.process_graph.items():

0 commit comments

Comments
 (0)