Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add universe compatibility with older versions of api-core #2372

Merged
merged 7 commits into from
Mar 28, 2024

Conversation

ohmayr
Copy link
Contributor

@ohmayr ohmayr commented Mar 27, 2024

No description provided.

@ohmayr ohmayr requested a review from a team as a code owner March 27, 2024 17:56
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Mar 27, 2024
@ohmayr ohmayr changed the title Fix: add compatibility with older versions of api-core Fix: add universe compatibility with older versions of api-core Mar 27, 2024
@parthea parthea changed the title Fix: add universe compatibility with older versions of api-core fix(deps): require httplib2>=0.19.0 Mar 27, 2024
@ohmayr ohmayr force-pushed the fix/test-universe-with-older-api-core-version branch from 24648f8 to 6d25555 Compare March 27, 2024 18:49
@parthea parthea changed the title fix(deps): require httplib2>=0.19.0 Fix: add universe compatibility with older versions of api-core Mar 27, 2024
@ohmayr ohmayr force-pushed the fix/test-universe-with-older-api-core-version branch from 56e3ea5 to 6791674 Compare March 27, 2024 19:45
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Mar 27, 2024
@ohmayr ohmayr force-pushed the fix/test-universe-with-older-api-core-version branch from 2e5baaf to 7875e80 Compare March 27, 2024 19:50
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: m Pull request size is medium. labels Mar 27, 2024
@ohmayr ohmayr force-pushed the fix/test-universe-with-older-api-core-version branch from 195610f to b73ecfd Compare March 27, 2024 21:47
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Mar 27, 2024
@ohmayr ohmayr force-pushed the fix/test-universe-with-older-api-core-version branch from e3c7566 to 7c91b9b Compare March 27, 2024 22:05
@ohmayr ohmayr force-pushed the fix/test-universe-with-older-api-core-version branch from 37658e9 to 4524943 Compare March 27, 2024 22:45
@ohmayr ohmayr added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 28, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 28, 2024
@ohmayr ohmayr force-pushed the fix/test-universe-with-older-api-core-version branch from 3fcff41 to 2f5678c Compare March 28, 2024 17:21
@parthea parthea changed the title Fix: add universe compatibility with older versions of api-core fix: add universe compatibility with older versions of api-core Mar 28, 2024
else:
if hasattr(google.api_core.client_options.ClientOptions, "universe_domain"):

def test_client_options_universe_with_older_version_of_api_core(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also add a test case for http credentials. eg. test_http_credentials_client_options_universe_with_older_version_of_api_core?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

setting clientOptions.universe_domain will raise an exception before we even check for credentials in build_from_document. Therefore, testing different type of credentials while also passing in clientOptions.universe_domain might not add much value here.

@ohmayr ohmayr changed the title fix: add universe compatibility with older versions of api-core chore: add universe compatibility with older versions of api-core Mar 28, 2024
@ohmayr ohmayr merged commit cbed66f into main Mar 28, 2024
13 checks passed
@ohmayr ohmayr deleted the fix/test-universe-with-older-api-core-version branch March 28, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants