Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

fix: use client_options.api_endpoint parameter instead of ignoring it#59

Merged
gcf-merge-on-green[bot] merged 3 commits into
googleapis:masterfrom
pradn:fix_api_endpoint
Mar 25, 2020
Merged

fix: use client_options.api_endpoint parameter instead of ignoring it#59
gcf-merge-on-green[bot] merged 3 commits into
googleapis:masterfrom
pradn:fix_api_endpoint

Conversation

@pradn
Copy link
Copy Markdown
Contributor

@pradn pradn commented Mar 25, 2020

  • The client_options.api-endpoint parameter was being ignored. This bug prevented users from using regional endpoints. It also made it harder to test code against nonprod endpoints.

Fixes #61

@pradn pradn requested a review from plamut March 25, 2020 01:47
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 25, 2020
Copy link
Copy Markdown
Contributor

@plamut plamut left a comment

Choose a reason for hiding this comment

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

Suggested a few Improvements. Let's also open an issue for the fix so that we have it in the next release's changelog.

Comment thread google/cloud/pubsub_v1/publisher/client.py Outdated
Copy link
Copy Markdown
Contributor

@plamut plamut left a comment

Choose a reason for hiding this comment

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

The change looks good, let's just cover the problematic edge case with an additional test.

Comment thread tests/unit/pubsub_v1/publisher/test_publisher_client.py
@pradn pradn added the automerge Merge the pull request once unit tests and other checks pass. label Mar 25, 2020
@pradn pradn changed the title fix: use api_endpoint parameter instead of ignoring it fix: use client_options.api_endpoint parameter instead of ignoring it Mar 25, 2020
@gcf-merge-on-green gcf-merge-on-green Bot merged commit 56b8d7b into googleapis:master Mar 25, 2020
@pradn pradn deleted the fix_api_endpoint branch March 25, 2020 22:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The client_options.api_endpoint parameter is being ignored in both PublisherClient and SubscriberClient

3 participants