Skip to content

feat(tests): add integration tests crate with 71 tests#69

Merged
copyleftdev merged 1 commit intomainfrom
feat/integration-tests
Jan 25, 2026
Merged

feat(tests): add integration tests crate with 71 tests#69
copyleftdev merged 1 commit intomainfrom
feat/integration-tests

Conversation

@copyleftdev
Copy link
Copy Markdown
Owner

Summary

  • Add zgrok-integration-tests crate with comprehensive cross-component testing
  • 71 tests covering protocol, edge, control, and tunnel layers
  • Tests validate Frame codec, message serialization, StreamMux, Router, RateLimiter, ConnectionTracker, ApiKeyService, SessionRegistry, and SubdomainAllocator

Test plan

  • cargo test -p zgrok-integration-tests - all 71 tests pass
  • cargo clippy -p zgrok-integration-tests -- -D warnings - no warnings
  • cargo fmt -p zgrok-integration-tests --check - properly formatted

🤖 Generated with Claude Code

Add zgrok-integration-tests crate providing cross-component testing:

- protocol.rs: Frame codec roundtrip, message serialization (AuthRequest,
  AuthResponse, Settings, ErrorPayload), StreamMux operations
- edge.rs: Router registration/lookup, rate limiting, connection tracking,
  stream tracking, shutdown controller
- control.rs: API key lifecycle, session registry, subdomain validation
  and allocation
- tunnel.rs: End-to-end flows spanning protocol, edge, and control layers

Includes test helpers for dynamic port allocation and logging initialization.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@copyleftdev copyleftdev merged commit 6cd2a9f into main Jan 25, 2026
@copyleftdev copyleftdev deleted the feat/integration-tests branch January 25, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant