-
Notifications
You must be signed in to change notification settings - Fork 230
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 read state plan" during acc tests using terraform-plugin-test #742
Comments
We need to look into whether github.com/hashicorp/setup-terraform, used to install Terraform to the PATH in GitHub Actions steps, causes issues if Is the |
I came across this issue when upgrading a separate provider that uses github actions. It looks like the default ubuntu image used by github actions has already upgraded to terraform 1.x, in my case, I needed to use |
@phillbaker do very recent versions of Terraform CLI work if you upgrade terraform-plugin-sdk to version 2.7.0? The |
I'll take a look, thanks for the hint @bflad. I was trying to avoid debugging too many things by jumping from SDK 1.x to a much higher 2.x, but that changelog certainly looks relevant 😀 . |
Hey @kmoe 👋 Indeed when using Relatedly, the acceptance testing documentation was very recently enhanced with GitHub Actions Workflow instructions, so hopefully developers can use that information to correctly test providers using the acceptance testing framework. 👍 |
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. |
The following issue appears in terraform-provider-kubernetes-alpha, which uses the archived terraform-plugin-test repo. It is not yet known whether this issue is reproducible with the SDKv2 plugintest package.
The following acceptance test run fails with an error:
https://github.com/hashicorp/terraform-provider-kubernetes-alpha/runs/2345992263
The
failed to read state plan
error text comes fromRequireState()
in terraform-plugin-test, which callstf.Show()
. This runs theterraform show -json
command and attempts to deserialise the resultant JSON, which seems to have failed due to the command output not being valid JSON.The text was updated successfully, but these errors were encountered: