mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-21 18:01:16 +00:00
e42bf62152
Step 11 (Run Tests) is recorded as PASS based on the implement skill's
internal Step 16 gate (./scripts/run-tests.sh --full, all-green) per
test-run/SKILL.md § Functional Mode — same runner, immediately
preceding invocation, no value in a second run.
Step 12 (Test-Spec Sync, cycle-update mode):
- traceability-matrix.md: rows added for AZ-491 AC-1..AC-6,
AZ-493 AC-1..AC-6, AZ-495 (doc convention), AZ-496 AC-1..AC-N
(dependency bump); AZ-494 AC-1/AC-2 rows now cross-reference
new SEC-12 / SEC-13 blackbox IDs.
- security-tests.md: SEC-12 (wrong iss returns 401) and SEC-13
(wrong aud returns 401) appended for AZ-494.
- environment.md: Environment Variables table extended with
GOOGLE_MAPS_API_KEY, JWT_SECRET, JWT_ISSUER, JWT_AUDIENCE,
INTEGRATION_TEST_DB_RESET. Closes a cycle-2 oversight where
JWT_SECRET was never recorded.
Step 13 (Update Docs, task mode):
- tests_unit.md: consolidated the duplicate
AuthenticationServiceCollectionExtensionsTests entry that
spanned AZ-487 + AZ-494 into one coherent block.
- ripple_log_cycle3.md created: per-task source files +
every doc that was touched (architecture, module-layout,
api_program, tests_unit, tests_integration, traceability,
performance-tests, security-tests, environment, security_report,
owasp_review, deploy_cycle2, retro_2026-05-11_cycle2). Notes
which docs were intentionally NOT touched and the open
cross-repo doc ripple (AC-7).
Autodev state advanced to Step 13 completed. Next: Step 14 Security
Audit (optional gate).
Co-authored-by: Cursor <cursoragent@cursor.com>
55 lines
2.7 KiB
Markdown
55 lines
2.7 KiB
Markdown
# Test Environment
|
||
|
||
## Infrastructure
|
||
|
||
| Component | Technology | Configuration |
|
||
|-----------|-----------|---------------|
|
||
| System Under Test | SatelliteProvider.Api (Docker container) | ASPNETCORE_ENVIRONMENT=Development |
|
||
| Database | PostgreSQL 16 (Docker container) | Fresh DB per test run (migrations auto-applied) |
|
||
| Test Runner | Custom console app (SatelliteProvider.IntegrationTests) | Docker container on same network |
|
||
| Orchestration | docker-compose.tests.yml | Waits for API health before starting tests |
|
||
|
||
## Network Topology
|
||
|
||
```
|
||
[Test Runner] --HTTP--> [API :8080] --TCP--> [PostgreSQL :5432]
|
||
|
|
||
+--HTTPS--> [Google Maps] (external, real)
|
||
```
|
||
|
||
## External Dependencies
|
||
|
||
| Dependency | Strategy | Notes |
|
||
|------------|----------|-------|
|
||
| Google Maps tile server | Real (live) | Integration tests use real downloads; requires GOOGLE_MAPS_API_KEY |
|
||
| PostgreSQL | Real (containerized) | Fresh database each run via migrations |
|
||
| File system | Real (Docker volume) | ./tiles, ./ready, ./logs mounted |
|
||
|
||
## Environment Variables
|
||
|
||
| Variable | Value | Purpose |
|
||
|----------|-------|---------|
|
||
| API_URL | http://api:8080 | Test runner → API connection |
|
||
| ASPNETCORE_ENVIRONMENT | Development | API config mode |
|
||
| ConnectionStrings__DefaultConnection | Host=postgres;Port=5432;... | DB connection |
|
||
| MapConfig__ApiKey | (from host env) | Google Maps auth |
|
||
| GOOGLE_MAPS_API_KEY | (from `.env` or shell env) | Google Maps tile downloads (AZ-487 onward — required for any integration mode) |
|
||
| JWT_SECRET | (from `.env` or shell env; ≥ 32 bytes) | HS256 signing key shared by API + test runner (AZ-487); fail-fast at startup if missing |
|
||
| JWT_ISSUER | (from `.env` or shell env) | Expected `iss` claim (AZ-494); fail-fast at startup if missing. DEV-ONLY local value: `DEV-ONLY-iss-admin-azaion-local` |
|
||
| JWT_AUDIENCE | (from `.env` or shell env) | Expected `aud` claim (AZ-494); fail-fast at startup if missing. DEV-ONLY local value: `DEV-ONLY-aud-satellite-provider` |
|
||
| INTEGRATION_TEST_DB_RESET | `enabled` (default) / `skip` (set by `--keep-state`) | AZ-493 reset hook; `enabled` truncates test-table rows on runner start, `skip` preserves them for debugging |
|
||
|
||
## Test Execution
|
||
|
||
**Decision**: Docker (no hardware dependencies detected)
|
||
**Hardware dependencies found**: None
|
||
**Execution method**: `docker-compose -f docker-compose.yml -f docker-compose.tests.yml up --build --abort-on-container-exit`
|
||
|
||
| Property | Value |
|
||
|----------|-------|
|
||
| Execution mode | Sequential (one test at a time) |
|
||
| Timeout per test | 15 minutes (HttpClient timeout) |
|
||
| Polling interval | 2–3 seconds |
|
||
| Max poll attempts | 120–360 (depends on test) |
|
||
| Startup wait | 30 retries × 2s = 60s max |
|