Testing
The project includes data provider tests. Full API conformance testing can be performed using the OGC API - Features Conformance Test Suite.
Test Application
The test application is included in the repository (SampleWebApplication). To run the OGC API conformance tests, you need to launch the Aspire application with the tests profile. This profile initializes the following components:
- SQL Server: Used as the database
- PostgreSQL (PostGIS): Database with spatial extensions
- OGC Tests Container: Based on the ogccite/ets-ogcapi-features10 Docker image, which includes the TEAM Engine application and the OGC API - Features test suite
Important Notes
- Clean up database volumes when switching launch profiles to avoid conflicts
- Manually delete volumes if persistent database issues occur
- Test collections are defined in
ogcapi-tests.json(located alongsideSampleWebApplication) - Critical requirement: The OGC API - Features 1.0 test suite requires OpenAPI 3.0 specification
Running OGC Tests
To run the OGC API conformance tests:
- Open the TEAM Engine application (URL available in Aspire dashboard for
ogc-testsresource) - Log in with credentials:
Username:ogctest
Password:ogctest - Click
Create a new session - In the “Specification” dropdown, select OGC API - Features and click
Start new session - In Location of the landing page, enter your API URL (default):
http://host.docker.internal:5000/api/ogcTip: Find the exact URL in
ogc-testsresource environment variables underservices__web-application__http__0 - (Optional) Specify collections to test or select all
- Click Start to begin testing
Additional Information
- Test configuration is automatically loaded from
ogcapi-tests.json - For more details about the OGC API - Features conformance tests, refer to the TEAM Engine Documentation
- The Docker image used for testing is available on Docker Hub: ogccite/ets-ogcapi-features10