Skip to content

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

Merged
merged 24 commits into from
Oct 13, 2020
Merged

Adding e2e test for pubsub sample #4835

merged 24 commits into from
Oct 13, 2020

Conversation

dinagraves
Copy link
Contributor

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.

@dinagraves dinagraves requested review from averikitsch, grant and a team as code owners October 9, 2020 18:08
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 9, 2020
@dinagraves dinagraves added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@dinagraves dinagraves added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@dinagraves dinagraves added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@dinagraves dinagraves added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Oct 9, 2020
@dinagraves dinagraves added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@dinagraves dinagraves added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@dinagraves dinagraves added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 10, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 10, 2020
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Oct 10, 2020
Copy link
Contributor

@averikitsch averikitsch left a 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)
Copy link
Contributor

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

Copy link
Contributor Author

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.

@dinagraves dinagraves merged commit 03bce05 into master Oct 13, 2020
@dinagraves dinagraves deleted the cloudrun-e2e branch October 13, 2020 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants