Skip to content

Commit

Permalink
Merge pull request #45 from eodcgmbh/general-api-compliance
Browse files Browse the repository at this point in the history
Feature: WP4 General API compliance validation
  • Loading branch information
soxofaan authored Feb 9, 2024
2 parents f9eeb05 + 11b3726 commit fb36b9e
Show file tree
Hide file tree
Showing 13 changed files with 2,936 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
path = assets/processes
url = https://github.com/Open-EO/openeo-processes
branch = add-tests
[submodule "assets/openeo-api"]
path = assets/openeo-api
url = git@github.com:Open-EO/openeo-api.git
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,17 @@ focussing on a specific API aspect to test or verify
--html=reports/process-metadata.html
```
- **WP4 General openEO API compliance validation** (lead implementation partner: EODC)
- TODO: [Open-EO/openeo-test-suite#20](https://github.com/Open-EO/openeo-test-suite/issues/20)
- Main location: [`src/openeo_test_suite/tests/general`](./src/openeo_test_suite/tests/general)
- Provides tests to validate the general openEO API compliance of a back-end.
- The backend is checked against the openeo API specification defined in the [openeo-api](https://github.com/Open-EO/openeo-api/).
- 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
`-m "not longrunning"` to the pytest command.
- Usage example of just running these tests against a desired openEO backend URL:
```bash
pytest src/openeo_test_suite/tests/general \
-U https://openeo.example \
--html=reports/general.html
```
- **WP5 Individual process testing** (lead implementation partner: M. Mohr)
- Main location: [`src/openeo_test_suite/tests/processes/processing`](./src/openeo_test_suite/tests/processes/processing)
- Provides tests to validate individual openEO processes,
Expand Down Expand Up @@ -377,7 +387,7 @@ Some general guidelines:
- Validation of process metadata:
add new tests to `src/openeo_test_suite/tests/processes/metadata`.
- General openEO API compliance validation:
- TODO: [Open-EO/openeo-test-suite#20](https://github.com/Open-EO/openeo-test-suite/issues/20)
add new tests to `src/openeo_test_suite/tests/general`.
- Individual process testing:
- new input-output pairs for existing or new processes:
add them in the [openeo-processes](https://github.com/Open-EO/openeo-processes) project
Expand Down
1 change: 1 addition & 0 deletions assets/openeo-api
Submodule openeo-api added at c5a45b
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies = [
"pytest-html>=4.1.0",
"stac-validator>=3.3.0",
"pytest-metadata>=3.0.0",
"openapi-core>=0.18.2",
]
classifiers = [
"Programming Language :: Python :: 3",
Expand Down
Loading

0 comments on commit fb36b9e

Please sign in to comment.