Skip to content

PubSub: Add system tests for PubSub clients - #8277

Merged
plamut merged 6 commits into
googleapis:masterfrom
plamut:iss-4031
Jun 21, 2019
Merged

PubSub: Add system tests for PubSub clients#8277
plamut merged 6 commits into
googleapis:masterfrom
plamut:iss-4031

Conversation

@plamut

@plamutplamut commented Jun 11, 2019

Copy link
Copy Markdown
Contributor

Closes#4031.

The title says it all - this PR adds the missing system tests mentioned in the issue description:

  • Listing topics and subscriptions in the client's project.
  • Creating subscriptions with non-default settings.
  • Listing subscriptions bound to a topic.
  • Setting / getting IAM policy for topics and subscriptions
  • Creating / seeking snapshots. ⬅️ Removed, because the server only guarantees eventual re-delivery, and a test cannot wait for a fixed amount of time, causes flakiness.

@plamutplamut added the api: pubsub Issues related to the Pub/Sub API. label Jun 11, 2019
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 11, 2019
Comment threadpubsub/tests/system.py Outdated
@plamutplamut added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 12, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 12, 2019
@yoshi-automationyoshi-automation added the 🚨 This issue needs some love. label Jun 18, 2019
plamut added 6 commits June 20, 2019 15:32
The PubSub backend does not give any guarantees about when a message
will be re-delivered after seeking back to a snapshot, it will only
be delivered "eventually". That causes flakiness in the snapshots
test.
Since the test cannot wait for an indefinite amount of time, this
commit removes it in order to not randomly break the CI builds.

@anguillanneufanguillanneuf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@plamut
plamut merged commit ac31bcf into googleapis:masterJun 21, 2019
parthea pushed a commit that referenced this pull request Mar 2, 2026
* Add system tests for listing topics, subscriptions
* Add system test for listing topic's subscriptions
* Add system test for using PubSub snapshots
* Add PubSub system tests for managing IAM policy
* Add test for creating non-default subscriptions
* Remove flaky PubSub snapshots system test
The PubSub backend does not give any guarantees about when a message
will be re-delivered after seeking back to a snapshot, it will only
be delivered "eventually". That causes flakiness in the snapshots
test.
Since the test cannot wait for an indefinite amount of time, this
commit removes it in order to not randomly break the CI builds.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsubIssues related to the Pub/Sub API.cla: yesThis human has signed the Contributor License Agreement.🚨This issue needs some love.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing system tests after pubsub redesign

5 participants

@plamut@anguillanneuf@googlebot@yoshi-automation@yoshi-kokoro