GeezerVison is showing github.com — Fix update test to use new endpoint by engelke · Pull Request #1925 · GoogleCloudPlatform/python-docs-samples
Conversation
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Previous deletions don't always succeed
|
|
ACK_DEADLINE_SECONDS = 100
|
|
|
|
|
|
subscriber.update_subscription(PROJECT, SUBSCRIPTION, ACK_DEADLINE_SECONDS)
|
|
|
subscriber.update_subscription(PROJECT, SUBSCRIPTION, ENDPOINT)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of updating subscription with itself, let's use a new endpoint, like say
new_endpoint = 'https://{}.appspot.com/push2'.format(PROJECT)
And then call subscriber.update_subscription(PROJECT, SUBSCRIPTION, new_endpoint).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
busunkim96
pushed a commit
to busunkim96/python-pubsub
that referenced
this pull request
May 20, 2020
…hon-docs-samples#1925)
* Fix update test to use new endpoint
* Handle subscription already exists
Previous deletions don't always succeed
* Use a new endpoint for update
plamut
pushed a commit
to plamut/python-pubsub
that referenced
this pull request
Jul 10, 2020
…hon-docs-samples#1925)
* Fix update test to use new endpoint
* Handle subscription already exists
Previous deletions don't always succeed
* Use a new endpoint for update
plamut
pushed a commit
to googleapis/python-pubsub
that referenced
this pull request
Jul 10, 2020
…hon-docs-samples#1925)
* Fix update test to use new endpoint
* Handle subscription already exists
Previous deletions don't always succeed
* Use a new endpoint for update
parthea
pushed a commit
to googleapis/google-cloud-python
that referenced
this pull request
Mar 2, 2026
parthea
pushed a commit
to googleapis/google-cloud-python
that referenced
this pull request
Mar 2, 2026
…hon-docs-samples#1925)
* Fix update test to use new endpoint
* Handle subscription already exists
Previous deletions don't always succeed
* Use a new endpoint for update
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
cla: yes
This human has signed the Contributor License Agreement.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|