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

Fix gRPC to call credentials.before_request#116

Merged
theacodes merged 2 commits intomasterfrom
grpc-before-request
Feb 22, 2017
Merged

Fix gRPC to call credentials.before_request#116
theacodes merged 2 commits intomasterfrom
grpc-before-request

Conversation

@theacodes
Copy link
Contributor

Resolves #113

# call works.
list_topics_iter = client.list_topics(
project='projects/{}'.format(project_id))
list(list_topics_iter)

This comment was marked as spam.

This comment was marked as spam.

Copy link

@lukesneeringer lukesneeringer left a comment

Choose a reason for hiding this comment

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

It is a little odd to me that neither system test actually asserts anything.

@theacodes
Copy link
Contributor Author

It is a little odd to me that neither system test actually asserts anything.

They do assert something, they assert the absence of an exception. The return value of the pubsub test could be an empty list. However, if the auth code fails (doesn't inject the header, injects the wrong header, etc.) then an exception will be raised.

@theacodes theacodes merged commit a209819 into master Feb 22, 2017
@theacodes theacodes deleted the grpc-before-request branch February 22, 2017 17:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants