You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
runPostTestDestroy invokes CheckDestroy and bubbles up the error.
Expected Behavior
When CheckDestroy function returns an error, test should fail. Error returned from CheckDestroy indicates that some resources still exist or there was a problem deleting it.
Actual Behavior
Test is passing despite returning error from CheckDestroy.
Steps to Reproduce
Return an error in any CheckDestroy function.
Tests still will pass.
References
Change was introduced in April in #356 and #393. Fix is trivial:
We were silently discarding the error instead of surfacing it when there
was an error returned from our post-test destroy code responsible for
tearing down infrastructure. Let's tell the user so they know
infrastructure may be dangling, and can see what went wrong and ideally
fix it.
Fixes#571.
We were silently discarding the error instead of surfacing it when there
was an error returned from our post-test destroy code responsible for
tearing down infrastructure. Let's tell the user so they know
infrastructure may be dangling, and can see what went wrong and ideally
fix it.
Fixes#571.
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.
ghost
locked as resolved and limited conversation to collaborators
Oct 16, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
SDK version
Relevant provider source code
In
helper/resource/testing_new.go
result fromrunPostTestDestroy
is ignored:runPostTestDestroy
invokes CheckDestroy and bubbles up the error.Expected Behavior
When CheckDestroy function returns an error, test should fail. Error returned from CheckDestroy indicates that some resources still exist or there was a problem deleting it.
Actual Behavior
Test is passing despite returning error from CheckDestroy.
Steps to Reproduce
References
Change was introduced in April in #356 and #393. Fix is trivial:
The text was updated successfully, but these errors were encountered: