Context
The hyperbytedb-proxy crate exists in the workspace but has no integration tests. The proxy provides TLS termination, load balancing, query routing, and health checking.
Deliverables
Add a test suite for the proxy at hyperbytedb-proxy/tests/. Test scenarios:
- Start a mock backend (or real hyperbytedb server) on a known port
- Start the proxy configured to forward to the backend
- Send requests through the proxy and verify they reach the backend
- Backend health check reporting
- Backend failure and recovery (stop/start the backend)
- TLS termination (if proxy is configured with TLS)
- Stale backend detection and removal from load balancer
Use tokio::time::pause where appropriate to speed up health-check intervals.
References
hyperbytedb-proxy/ — proxy crate structure
hyperbytedb-proxy/src/main.rs — proxy entry point
Priority
P2 — Test coverage, component integration
Context
The
hyperbytedb-proxycrate exists in the workspace but has no integration tests. The proxy provides TLS termination, load balancing, query routing, and health checking.Deliverables
Add a test suite for the proxy at
hyperbytedb-proxy/tests/. Test scenarios:Use
tokio::time::pausewhere appropriate to speed up health-check intervals.References
hyperbytedb-proxy/— proxy crate structurehyperbytedb-proxy/src/main.rs— proxy entry pointPriority
P2 — Test coverage, component integration