-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
functions: fix slack + pubsub tests #3808
Conversation
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.
Please address comment. Other than that LGTM.
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.
Thanks, I assume you added slack secret in the encrypted file.
In that case, can you remove functions/slack/noxfile_config.py
?
@tmatsuo yes - I've removed that file. 🙂 |
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.
@ace-n The tests are still failing FYI
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.
LGTM modulo one question
functions/pubsub/main.py
Outdated
@@ -62,7 +61,7 @@ def publish(request): | |||
|
|||
# [START functions_pubsub_subscribe] | |||
# Triggered from a message on a Cloud Pub/Sub topic. | |||
def subscribe(event, context): | |||
def subscribe(event): |
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.
So why did we have context
argument in the first place? Isn't there a case the functions service is sending the 2nd argument?
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.
Update: GCF itself sends context
as a second positional argument, so we cannot ignore it in the method signature.
@ace-n |
No description provided.