AEROSIM-TS-24
Verify real-time connection and failure behavior
Integration tests cover connection, authorization rejection, reconnect, ordered delivery, invalid events, and disconnect cleanup across Nebula and Singularity.
- Verified flow state
- Done
- Owner
- AeroSim Architecture and Delivery
- Feature
- AEROSIM-FT-44
- Component
- Web Application and API Service — Socket.IO integration tests
- Repository
- corp-v1-aerosim/corp-v1-aerosim
Delivery scope
Run the real Nebula client against the Fastify Socket.IO gateway and prove authenticated round trip, acknowledgement correlation, ordered delivery, rejection paths, bounded reconnect, deduplication, and disconnect cleanup using the shared runtime schemas. Primary files: tests/integration/realtime/socket-roundtrip.test.ts, tests/integration/realtime/fixtures.ts, tests/helpers/test-socket-server.ts.
Implementation contract
Implementation artifacts
- tests/integration/realtime/socket-roundtrip.test.ts
- tests/integration/realtime/fixtures.ts
- tests/helpers/test-socket-server.ts
Inputs
- Test JWTs for valid, missing, invalid-signature, and expired subjects
- FlightCommand fixtures with valid, malformed, duplicate, and out-of-order sequences
Outputs
- Round-trip trace correlating commandId, acknowledgement, and FlightState sequence
- Connection cleanup assertion showing zero gateway sessions and zero client listeners
Failure boundaries
- No state event may be delivered for an unauthorized handshake or invalid command.
- A reconnect must not replay an acknowledged command or deliver the same FlightState sequence twice.
Excluded scope
- Latency SLO measurement, horizontal Socket.IO fan-out, Redis adapter deployment, and long-lived telemetry archival are not covered.
Verification steps
- pnpm test:integration -- socket-roundtrip.test.ts
- Terminate transport after sequence 3, reconnect, emit sequences 4 and 4, and assert the store contains 1..4 exactly once.
Traceability
Dependencies
- AEROSIM-TS-23Canonical ID: TASK-0023
UI/UX applicability
non_visual
This Task owns technical or behavioral acceptance and does not claim direct visual conformance to the approved UI/UX package.
Acceptance evidence
Verified delivery: application PR #41 reviewed head 2dd1ae540d9952a0c532602bcbd483d8a5cdfd1a, exact-head validation task 1895 succeeded, merged as 9ad375be00ff8d9d5253dfd1092c6db6d8913893; Wave 7 integrated application head b75d00b8c3864752bf5b1ea0298097add346f0aa passed publish task 1899 and validate task 1900. Release completion verified on product 1.0.0.0 at GitOps revision 5d3712d89dfbf7dacd993348e55f497d126c7bf9 with Argo Synced/Healthy, exact image digests, authenticated API/database access, and three-world configured-flight acceptance.
Current evidence boundary
No current implementation, acceptance, release, or deployment evidence is claimed for this planned Task. Any prior implementation may be used only as prototype and discovery evidence.