Commit 9dc36f6
authored
test: Add E2E integration and load tests for EventStream pipeline (#1115)
* test: Add E2E integration and load tests for EventStream pipeline
Full-stack integration tests covering the Kafka -> EventSource -> FanOut
-> Router -> Handler -> WebSocket client pipeline:
- Kafka testcontainer + miniredis full-stack E2E test
- InProcessFanOut-based E2E delivery test
- Cross-tenant isolation verification (zero leakage)
- Multi-tenant concurrent event delivery
- Channel-scoped subscription filtering
- 100 concurrent WebSocket connections load test (50k events/sec)
- 5000 events/sec sustained throughput test
- Go benchmark for connection concurrency
* fix: Use cancel-only context in benchmark to prevent timeout with large b.N
* refactor: Address CodeRabbit review feedback
- Export ConsumerGroupID constant to prevent test drift between
integration_test.go and kafka_source.go
- Replace tautological const assertion with runtime registry check
---------
Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>1 parent da6f35e commit 9dc36f6
3 files changed
Lines changed: 1326 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
| 412 | + | |
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
0 commit comments