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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Identifier only refresh testing is generally a legacy testing practice before full import testing was the normal convention and the testing framework automatically performed refresh after apply. Other use cases for IDRefreshName are not clear.
New Checks
AT010: Prefer TestStep.ImportState over TestCase.IDRefreshName
AT011: Avoid TestCase.IDRefreshIgnore without TestCase.IDRefreshName
Flagged Provider Code
resource.TestCase{
// ... other configuration ...IDRefreshName: "example_thing.test",
})
resource.TestCase{
// ... other configuration except IDRefreshName ...IDRefreshIgnore: []string{"attr"},
})
Passing Provider Code
resource.TestCase{
// ... other configuration ...
})
Community Note
Description
Identifier only refresh testing is generally a legacy testing practice before full import testing was the normal convention and the testing framework automatically performed refresh after apply. Other use cases for
IDRefreshName
are not clear.New Checks
TestStep.ImportState
overTestCase.IDRefreshName
TestCase.IDRefreshIgnore
withoutTestCase.IDRefreshName
Flagged Provider Code
Passing Provider Code
References
The text was updated successfully, but these errors were encountered: