test: add null SSL details fallback test#41840
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdds a new test case ChangesMSSQL SSL Defaults
Estimated Code Review Effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Summary
Adds a regression test for the MSSQL SSL fallback fix.
This test verifies that when the SSLDetails object is null, the plugin gracefully defaults to encrypt=false instead of throwing an exception.
Why this test matters
This test validates the intermediate null-guard branch in addSslOptionsToUrlBuilder() and ensures datasource creation remains robust even when SSL configuration is partially initialized.
Fixes #41627
Summary by CodeRabbit