mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-21 11:31:14 +00:00
cc0a876168
Add a fast integration profile so Step 7 (and future autodev re-entries) can verify the full stack in ~2 min instead of ~15 min, without losing access to the long-running coverage when needed. - TestRunMode.cs: smoke flag + tightened poll/timeout values. - Program.cs: env var INTEGRATION_TESTS_MODE / --smoke|--full CLI switch; smoke runs Tile + 200m region + simple route + ZIP route + Security; full keeps the existing sequence. - RegionTests / ExtendedRouteTests: read timeouts from TestRunMode instead of hardcoding 120/180/360. - docker-compose.tests.yml: forwards INTEGRATION_TESTS_MODE to the integration-tests container (default 'full'). - scripts/run-tests.sh: adds --unit-only / --smoke / --full flags, loads .env automatically, fails fast if GOOGLE_MAPS_API_KEY is missing. Step 7 result: all tests passed in 111.86 s wall-clock (35/35 unit + 5/5 smoke integration scenarios incl. SEC-01..04). Report saved to _docs/03_implementation/test_run_step7.md. State advanced to Step 8 (Refactor). Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
619 B
YAML
31 lines
619 B
YAML
services:
|
|
postgres:
|
|
extends:
|
|
file: docker-compose.yml
|
|
service: postgres
|
|
|
|
api:
|
|
extends:
|
|
file: docker-compose.yml
|
|
service: api
|
|
|
|
integration-tests:
|
|
build:
|
|
context: .
|
|
dockerfile: SatelliteProvider.IntegrationTests/Dockerfile
|
|
container_name: satellite-provider-integration-tests
|
|
environment:
|
|
- API_URL=http://api:8080
|
|
- INTEGRATION_TESTS_MODE=${INTEGRATION_TESTS_MODE:-full}
|
|
volumes:
|
|
- ./ready:/app/ready
|
|
- ./tiles:/app/tiles
|
|
depends_on:
|
|
api:
|
|
condition: service_started
|
|
restart: "no"
|
|
|
|
volumes:
|
|
postgres_data:
|
|
|