Skip to content

chore(bigquery-jdbc): refactor tests to remove hardcoded base uri#13420

Open
logachev wants to merge 7 commits into
mainfrom
kirl/base_url
Open

chore(bigquery-jdbc): refactor tests to remove hardcoded base uri#13420
logachev wants to merge 7 commits into
mainfrom
kirl/base_url

Conversation

@logachev

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a helper method getBaseConnectionUrl() in TestUtilities to centralize and parameterize the base JDBC connection URL, and updates various integration tests to use this method instead of hardcoded strings. The review identified several critical compilation errors related to string concatenation and syntax in the updated test files, as well as minor cleanup opportunities for redundant string concatenations.

@logachev

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the integration tests to dynamically construct the BigQuery JDBC connection URL using environment variables or system properties, replacing hardcoded URL strings across multiple test classes. Feedback suggests improving the robustness of the URL flag parsing in TestUtilities, declaring the shared connectionUrl in ITBase as final to ensure immutability, and avoiding redundant caching of the connection URL in local class fields across several test files by referencing ITBase.connectionUrl directly.

Comment thread java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java Outdated
@logachev logachev marked this pull request as ready for review June 16, 2026 01:12
@logachev logachev requested review from a team as code owners June 16, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant