-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Resource Acceptance Testing Missing CheckDestroy #8958
Labels
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone
Comments
This was referenced Jun 24, 2019
This linter check is now passing in master and ready to be enabled for pull requests! |
bflad
added a commit
that referenced
this issue
Jul 4, 2019
Reference: #8958 Pull requests will now be checked for resource TestCase CheckDestroy implementation.
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Description
TestCase
CheckDestroy
functions are used to verify that test infrastructure has been removed at the end of an acceptance test (e.g. theDelete
function of the resource works correctly) by calling the API to attempt to read the deleted infrastructure. More information can be found at: https://www.terraform.io/docs/extend/testing/acceptance-tests/testcase.html#checkdestroyWe would like to enable the
tfproviderlint
AT001
check for verifying this check is included during pull request reviews, however there is some existing testing missing this functionality that needs to be addressed or explicitly ignored:For a limited number of the above, bypassing the linter check either via
//lintignore:AT001
orCheckDestroy: nil,
is acceptable as there is no API check to perform.Definition of Done
tfproviderlint
is updated tov0.4.0
or later which will ignore data source files (upcoming release)GNUmakefile
, thetfproviderlint
command under thelint
target has the-AT001
flag enabled and TravisCI testing passesThe text was updated successfully, but these errors were encountered: