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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gRPC to call credentials.before_request #116

Merged
merged 2 commits into from
Feb 22, 2017
Merged

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 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.

3 participants