File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
algorithm_catalog/eodc/sen2like/benchmark_scenarios
qa/tools/apex_algorithm_qa_tools Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff 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 ():
You can’t perform that action at this time.
0 commit comments