terraform-plugin-sdk icon indicating copy to clipboard operation
terraform-plugin-sdk copied to clipboard

SkipFunc and more helpful errors for Terraform versions during testing

Open kmoe opened this issue 4 years ago • 1 comments

ProtoV6ProviderFactories added in https://github.com/hashicorp/terraform-plugin-sdk/pull/761 requires Terraform v0.15.4 or later. Using earlier versions of Terraform will result in an unhelpful error from the Terraform CLI.

Check the Terraform version being used during acc testing and give a helpful error if incompatible provider factory versions are used.

Also provide a built-in SkipFunc for skipping tests based on Terraform versions.

kmoe avatar Jun 25 '21 13:06 kmoe

I'd love to see this too. I need to selectively skip acc tests based on TF version.

I our case, this would have to be available via terraform-plugin-test / terraform-plugin-go

alexsomesan avatar Mar 28 '22 17:03 alexsomesan