-
Notifications
You must be signed in to change notification settings - Fork 13
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
Failed to marshal state to json
error when upgrading from 1.5.1 to 1.6.0
#256
Comments
Hi @AgustinBettati 👋 Thank you for reporting this issue and sorry you ran into trouble here. A lot of the maintainers are out this week for an end of year break, however let's see if we cannot get you unstuck. What I suspect is happening is the combination of:
In general, Could you let us know how removing Apologies again for the hassle and please reach out if you have any questions or issues. Thank you. |
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.
Thank you for the response, the suggestion provided did in fact work.
Only one test was impacted, but I imagine this also depends on the provider version defined in the migration test. I was wondering if it would also be worth updating the Migration Test Documentation as it currently makes use of |
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.
@AgustinBettati thank you so much for the response.
That is a great suggestion. I will submit that change over in terraform-plugin-framework as that is where that particular documentation source is located.
Without |
Appreciate the doc updates, this brings more clarity. Happy to close this issue if nothing else is pending. |
Thanks, @AgustinBettati! |
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
Migration test that uses an old version
1.11.0
of our provider and then runs a plan operation using latest build.Relevant attribute definition from version 1.11.0, which was removed in version 1.12.0
Terraform Configuration Files
Note that
bi_connector
attribute is not defined.Expected Behavior
Test is running successfully with version 1.5.1 of terraform-plugin-testing.
When running this scenario manually no issues are encountered:
"bi_connector": null
defined in the state.Actual Behavior
To provide more context,
bi_connector
is an attribute that was removed in version 1.12.0, meaning it is defined in the state as null when the resource is created (not defined in the config) with version 1.11.0, and then when using the latest version (higher than 1.12.0) as the attribute is unknown it would seem to cause an error in the step 2.Steps to Reproduce
References
The text was updated successfully, but these errors were encountered: