feat(questdb): Append URL parameters in QuestDBContainer.getJdbcUrl() - #12074
feat(questdb): Append URL parameters in QuestDBContainer.getJdbcUrl()#12074mohamedtoukhy03 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughQuestDBContainer now exposes its default database name and includes configured URL parameters in generated JDBC URLs. Tests cover additional JDBC parameters and the ChangesQuestDB JDBC integration
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change adds the requested QuestDB JDBC URL parameters and database name behavior without an identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
What does this PR do?
Currently,
QuestDBContainer.getJdbcUrl()does not include query parameters configured viawithUrlParam(key, value). This PR updatesQuestDBContainer.getJdbcUrl()to append URL parameters viaconstructUrlParameters("?", "&"), usePOSTGRES_PORT, and overridesgetDatabaseName()to returngetDefaultDatabaseName().This aligns
QuestDBContainerwith the other JDBC database containers in Testcontainers (such as PostgreSQL, CockroachDB, TiDB, MariaDB, etc.).Why are these changes needed?
Users who configure connection parameters on
QuestDBContainer(e.g., SSL options, binary transfer, or session parameters) expectgetJdbcUrl()to contain them when connecting via JDBC.How was this tested?
Added tests in
SimpleQuestDBTest:testWithAdditionalUrlParamInJdbcUrl: Verifies URL parameters configured with.withUrlParam(...)are correctly appended togetJdbcUrl().testDatabaseName: VerifiesgetDatabaseName()returns"qdb".Summary by CodeRabbit
qdb.