-
Notifications
You must be signed in to change notification settings - Fork 11
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
Error with state upgrades after terraform-plugin-testing@v1.6.0
update
#237
Comments
terraform-plugin-testing@v1.6.0
upgradeterraform-plugin-testing@v1.6.0
update
Verified that removing |
We discussed this out of band a little bit and it feels like the test failure is potentially a better behavior. Essentially what is happening is that the testing prior was doing (during the second step with PlanOnly):
The state upgrade would get applied to the Terraform state as part of the explicit refresh command so the plan would show no differences (pass!). However for most practitioners, this wouldn't be a normal workflow in modern Terraform, as explicit refresh commands are discouraged. Now the testing is just running the plan commands, which correctly want to apply the state upgrader change(s) (fail!). There are a few options for handling this type of new test failure:
If this is a large enough compatibility issue, I think we would certainly be amenable to reverting the refresh command removal and saving it until the next major version, but I also think we should have some amount of leeway in having the testing framework trying to replicate true practitioner workflows and updating the testing logic to match. |
For the AWS Provider we probably have only at most a dozen test cases with that |
This issue is remaining open to capture developer burden for the |
Reference: #223 Reference: #237 Reference: #256 Post-release update to the v1.6.0 CHANGELOG to capture now-known situations that would affect existing provider testing. This update ensures developers upgrading to v1.6.0 will receive the latest guidance and the guidance will remain for this version after future releases. If approved and merged, the v1.6.0 GitHub Release description will also be updated with the same additional content.
Reference: #223 Reference: #237 Reference: #256 Post-release update to the v1.6.0 CHANGELOG to capture now-known situations that would affect existing provider testing. This update ensures developers upgrading to v1.6.0 will receive the latest guidance and the guidance will remain for this version after future releases. If approved and merged, the v1.6.0 GitHub Release description will also be updated with the same additional content.
As mentioned above, closing out since no one else has reported anything. |
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. |
terraform-plugin-testing version
Relevant provider source code
Terraform Schema
Acceptance Test Case
Terraform Configuration Files
Expected Behavior
With v1.5.1
Actual Behavior
With v1.6.0
The text was updated successfully, but these errors were encountered: