Add integration tests for JetStreamEventStore

This commit adds comprehensive integration tests for JetStreamEventStore
that validate production event store behavior against a real NATS server.

Tests include:
- Stream creation and configuration
- SaveEvent persistence to JetStream
- GetEvents retrieval in correct order
- GetLatestVersion functionality
- Snapshot save/load operations
- Namespace isolation between stores
- Concurrent writes and version conflict handling
- Persistence across connection disconnects
- Multiple store instance coordination

Also updates CI workflow to run integration tests with a NATS server
enabled with JetStream.

Closes #10

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-10 22:58:53 +00:00
co-authored by Claude Opus 4.5
parent e66fa40b3a
commit 7085c682c3
2 changed files with 1455 additions and 0 deletions
File diff suppressed because it is too large Load Diff