-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Adding e2e test for pubsub sample #4835
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
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.
Thanks @dinagraves !
# Retry a maximum number of 10 times to find results in stackdriver | ||
found = False | ||
for x in range(10): | ||
iterator = client.list_log_entries(resource_names, filter_=filters) |
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.
Maybe add a sleep in between tries
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.
Added! Also realized I was only breaking from the inner loop so added an extra break statement for the outer loop.
Adding end to end tests for the pub/sub sample. B/c pub/sub doesn't return a message from the service, it uses the logging API to check that the service handled the message properly.