Add unit tests for streaming request and response body logging#209
Add unit tests for streaming request and response body logging#209ravindu-danthanarayana wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummaryThis PR adds unit test coverage for streaming methods in the log-message policy by introducing a new test case, Changes
WalkthroughA new test function, 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies" Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Purpose
This PR adds missing unit test coverage for the streaming methods in the log-message policy.
Goals
Improve test coverage for streaming request and response body logging paths.
Approach
Added a new test case TestLogMessagePolicy_StreamingRequestAndResponse covering:
The test verifies the expected forwarding behavior and logging of streamed request and response payload chunks.
User stories
N/A
Release note
Added unit test coverage for streaming request and response body logging.
Documentation
N/A
Training
N/A
Certification
N/A