File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
tools/apex_algorithm_qa_tools Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 84
84
"linkTemplates" : [],
85
85
"links" : [
86
86
{
87
- "rel" : " openeo-udp " ,
87
+ "rel" : " openeo-process " ,
88
88
"type" : " application/json" ,
89
- "title" : " openEO UDP " ,
89
+ "title" : " openEO Process Definition " ,
90
90
"href" : " https://github.com/ESA-APEX/apex_algorithms/blob/main/openeo_udp/worldcereal_inference.json"
91
91
},
92
92
{
Original file line number Diff line number Diff line change @@ -76,9 +76,10 @@ def lint_benchmark_scenario(scenario: BenchmarkScenario):
76
76
raise ValueError (
77
77
f"Invalid github.com based namespace { namespace !r} : should be a raw URL"
78
78
)
79
- # Inspect UDP URL
80
- udp_resp = requests .get (namespace )
81
- udp_resp .raise_for_status ()
82
- assert udp_resp .json ()["id" ] == node ["process_id" ]
79
+ # Inspect openEO process definition URL
80
+ resp = requests .get (namespace )
81
+ resp .raise_for_status ()
82
+ # TODO: also support process listings?
83
+ assert resp .json ()["id" ] == node ["process_id" ]
83
84
# TODO: check that github URL is a "pinned" reference
84
- # TODO: check that provided parameters match expected parameters from UDP
85
+ # TODO: check that provided parameters match expected process parameters
Original file line number Diff line number Diff line change @@ -19,5 +19,5 @@ def test_lint_algorithm_catalog_json_file(path):
19
19
20
20
assert data ["properties" ]["type" ] == "apex_algorithm"
21
21
22
- assert "openeo-udp " in {k ["rel" ] for k in data ["links" ]}
22
+ assert "openeo-process " in {k ["rel" ] for k in data ["links" ]}
23
23
# TODO more checks
Original file line number Diff line number Diff line change @@ -20,3 +20,4 @@ def test_lint_openeo_udp_json_file(path):
20
20
assert "parameters" in data
21
21
assert "process_graph" in data
22
22
# TODO more checks
23
+ # TODO require a standardized openEO "type"? https://github.com/Open-EO/openeo-api/issues/539
You can’t perform that action at this time.
0 commit comments