Skip to content

Commit fb36b9e

Browse files
authored
Merge pull request #45 from eodcgmbh/general-api-compliance
Feature: WP4 General API compliance validation
2 parents f9eeb05 + 11b3726 commit fb36b9e

File tree

13 files changed

+2936
-2
lines changed

13 files changed

+2936
-2
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
path = assets/processes
33
url = https://github.com/Open-EO/openeo-processes
44
branch = add-tests
5+
[submodule "assets/openeo-api"]
6+
path = assets/openeo-api
7+
url = git@github.com:Open-EO/openeo-api.git

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,17 @@ focussing on a specific API aspect to test or verify
5454
--html=reports/process-metadata.html
5555
```
5656
- **WP4 General openEO API compliance validation** (lead implementation partner: EODC)
57-
- TODO: [Open-EO/openeo-test-suite#20](https://github.com/Open-EO/openeo-test-suite/issues/20)
57+
- Main location: [`src/openeo_test_suite/tests/general`](./src/openeo_test_suite/tests/general)
58+
- Provides tests to validate the general openEO API compliance of a back-end.
59+
- The backend is checked against the openeo API specification defined in the [openeo-api](https://github.com/Open-EO/openeo-api/).
60+
- There are some tests which might run for a long time (as they running process_graphs on the backends) these can be skippied by adding
61+
`-m "not longrunning"` to the pytest command.
62+
- Usage example of just running these tests against a desired openEO backend URL:
63+
```bash
64+
pytest src/openeo_test_suite/tests/general \
65+
-U https://openeo.example \
66+
--html=reports/general.html
67+
```
5868
- **WP5 Individual process testing** (lead implementation partner: M. Mohr)
5969
- Main location: [`src/openeo_test_suite/tests/processes/processing`](./src/openeo_test_suite/tests/processes/processing)
6070
- Provides tests to validate individual openEO processes,
@@ -377,7 +387,7 @@ Some general guidelines:
377387
- Validation of process metadata:
378388
add new tests to `src/openeo_test_suite/tests/processes/metadata`.
379389
- General openEO API compliance validation:
380-
- TODO: [Open-EO/openeo-test-suite#20](https://github.com/Open-EO/openeo-test-suite/issues/20)
390+
add new tests to `src/openeo_test_suite/tests/general`.
381391
- Individual process testing:
382392
- new input-output pairs for existing or new processes:
383393
add them in the [openeo-processes](https://github.com/Open-EO/openeo-processes) project

assets/openeo-api

Submodule openeo-api added at c5a45b4

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies = [
2323
"pytest-html>=4.1.0",
2424
"stac-validator>=3.3.0",
2525
"pytest-metadata>=3.0.0",
26+
"openapi-core>=0.18.2",
2627
]
2728
classifiers = [
2829
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)