# Module: Tests/SatelliteProvider.IntegrationTests ## Purpose Console application that runs end-to-end integration tests against a live API instance. Designed to run in Docker alongside the API and PostgreSQL containers. ## Public Interface ### Test Classes - `TileTests` — tile download via lat/lon endpoint - `RegionTests` — region request → polling → completion flow - `BasicRouteTests` — route creation with intermediate points - `ComplexRouteTests` — routes with geofencing - `ExtendedRouteTests` — routes with `requestMaps: true` and tile ZIP creation ### Supporting Classes - `Models.cs` — HTTP response DTOs for deserialization - `RouteTestHelpers.cs` — shared utilities (wait-for-completion polling, geofence polygon builders, test data) - `Program.cs` — test runner entry point ## Internal Logic - Makes HTTP calls to the API at `API_URL` environment variable (default: `http://api:8080`) - Tests are methods called sequentially from `Program.cs` (not xUnit — plain console app) - Poll-based waiting for async operations (region/route completion) - Validates response structure, status transitions, file creation ## Dependencies - No project references (standalone console app) - Communicates with the API exclusively via HTTP - NuGet: implicit .NET 8 runtime ## Consumers - `docker-compose.tests.yml` — runs as a container that depends on the API service ## Configuration - `API_URL` environment variable (set in docker-compose.tests.yml to `http://api:8080`) ## External Integrations - HTTP to the SatelliteProvider API - Reads output files from mounted `./ready/` and `./tiles/` volumes ## Security None. ## Tests This IS the integration test suite.