-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/google: Fix Pubsub acceptance tests #5439
Conversation
Acceptance tests for Pubsub topics and subscriptions failed after incorrectly determining that resources were not deleted in the CheckDestroy phase. Fixes 5437
The CheckDestroy func was interpreting a non-nil error from the Get{Topic,Subscription} calls to mean the topic still existed, when the opposite is true. I removed checking What's thoroughly confused me is why this test run passed: https://travis-ci.org/hashicorp/terraform/jobs/108197224 |
In fact, PubSub tests continued to pass after the test I linked above. This is the test where they started to fail. Any thoughts, @lwander? |
That test behavior is definitely odd, but these changes look good so I'm going to pull them in so they make the nightly run for tonight. Here's to a hopefully passing suite! 🍻 |
provider/google: Fix Pubsub acceptance tests
Here's why: 3eb65f2#diff-5f8e56f07503aa8fcc49a3e77a381794R39 The code wasn't returning the error, and that commit from 19 days ago fixed that, but inadvertently broke the test. Thanks for getting these fixed, @evandbrown! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Acceptance tests for Pubsub topics and subscriptions failed after
incorrectly determining that resources were not deleted in the
CheckDestroy phase.
Fixes #5437