Commit 4ba7817
committed
test: add comprehensive Tower integration tests
Add extensive test coverage for Tower service integration:
- Basic Tower service tests for both Cloud and Enterprise clients
- All HTTP methods (GET, POST, PUT, PATCH, DELETE)
- Oneshot and multiple request patterns
- Error handling and validation
- Tower middleware composition tests
- Timeout middleware with configurable durations
- Rate limiting with token bucket
- Buffer layer for concurrent request handling
- Custom middleware for request counting
- Full middleware stack composition
- Add tower dev dependency for middleware features
- Re-export tower_support module from lib.rs when tower-integration feature enabled
Tests demonstrate CloudClient and EnterpriseClient work correctly with
Tower's middleware ecosystem for production patterns like timeouts,
rate limiting, and buffering.1 parent c7d3bd3 commit 4ba7817
File tree
9 files changed
+1810
-71
lines changed- crates
- redis-cloud
- src
- tests
- redis-enterprise
- src
- tests
9 files changed
+1810
-71
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
0 commit comments