[AZ-289] [AZ-290] Batch 3 tests: integration ZIP cap, perf, security, queue

AZ-289 — RL-01 50MB ZIP cap added to RunRouteWithTilesZipTest;
existing integration tests already cover BT-08/BT-09 + AC-1/AC-2.

AZ-290:
- scripts/run-performance-tests.sh extended with PT-01/03/04/05
- SatelliteProvider.IntegrationTests/SecurityTests.cs (SEC-01..SEC-04),
  wired into Program.cs
- SatelliteProvider.Tests/RegionRequestQueueTests.cs covering RS-04 /
  RL-02 queue capacity behavior

Notes:
- RS-04 spec wording ("rejects overflow") drifts from the channel's
  BoundedChannelFullMode.Wait back-pressure semantics. Tests assert
  the actual behavior; spec to be reconciled in Step 12 (Test-Spec
  Sync). Tracked as Low/Spec-Gap in batch_03_review.md.
- Unit tests: 35/35 passed (Docker .NET 8 SDK).
- Integration test project builds clean (0 warnings, 0 errors).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-05-10 05:10:30 +03:00
parent dea0b8b4c0
commit 7822841587
10 changed files with 473 additions and 1 deletions
@@ -0,0 +1,31 @@
# Integration Tests: Route Map Processing + ZIP
**Task**: AZ-289_integration_route_maps
**Name**: Integration tests: route map processing + ZIP
**Complexity**: 2 points
**Dependencies**: AZ-285
**Component**: Blackbox Tests
**Tracker**: AZ-289
**Epic**: AZ-284
## Scenarios
- BT-08: Route with requestMaps=true — verify mapsReady=true, stitchedImagePath, csvFilePath
- BT-09: Route with createTilesZip=true — verify ZIP contents match CSV tile count, directory structure preserved
## System Under Test Boundary
Tests drive the API via HTTP endpoints. No internal module stubs — all services run in Docker as production.
## Test Data
Route points from test_coordinates.md (ROUTE-02, ROUTE-03)
## Notes
BT-10/11/12 are already covered by existing integration tests (ComplexRouteTests, ExtendedRouteTests).
## Acceptance Criteria
AC-1: Route map processing completes within 180s
AC-2: ZIP file structure is validated (entry count matches CSV, path prefix "tiles/")
@@ -0,0 +1,50 @@
# Non-Functional Tests
**Task**: AZ-290_nonfunctional_tests
**Name**: Non-functional tests: perf, resilience, security, limits
**Complexity**: 3 points
**Dependencies**: AZ-285
**Component**: Blackbox Tests
**Tracker**: AZ-290
**Epic**: AZ-284
## Performance Scenarios (PT-01 through PT-06)
- PT-01: Tile download latency <30s
- PT-02: Cached tile retrieval <500ms
- PT-03/04: Region processing throughput
- PT-05: 5 concurrent regions all complete
- PT-06: Route interpolation <5s
## Resilience Scenarios (RS-01 through RS-06)
- RS-01: API starts with database ready
- RS-02: Migrations run on fresh DB
- RS-03: Region processing handles tile failures
- RS-04: Queue rejects overflow (capacity 1000)
- RS-05: Max 4 concurrent downloads
- RS-06: Route processing completes all regions
## Security Scenarios (SEC-01 through SEC-04)
- SEC-01: SQL injection via coordinates
- SEC-02: Path traversal in tile serving
- SEC-03: Oversized region request
- SEC-04: Malformed JSON
## Resource Limit Scenarios (RL-01 through RL-04)
- RL-01: ZIP ≤ 50MB
- RL-02: Queue capacity 1000
- RL-03: Concurrent download semaphore (4)
- RL-04: Concurrent region processing (20)
## System Under Test Boundary
All tests drive the system via HTTP API or observe Docker container behavior.
## Acceptance Criteria
AC-1: Performance scripts (scripts/run-performance-tests.sh) pass thresholds
AC-2: Resilience tests verify state transitions and resource limits
AC-3: Security tests confirm no injection or traversal vulnerabilities