-
Notifications
You must be signed in to change notification settings - Fork 78
Description
Documenting this as a known issue in case someone else runs into this problem
Background
Release v0.14.0 included an upgraded version of terraform-exec v0.18.0 which has a bug where detailed stderr information isn't being passed to downstream modules.
This has now been fixed with the new release of terraform-exec v0.18.1 and will be upgraded in the dependencies of terraform-plugin-docs v0.14.1
While the docs tool doesn't use this error information directly, this caused a situation where upgrading terraform-plugin-docs from 0.13.0 to 0.14.0 could cause acceptance tests to fail if the consuming module also uses terraform-plugin-testing or terraform-plugin-sdk.
Both terraform-plugin-testing and terraform-plugin-sdk use terraform-exec to run acceptance tests and are affected by this regression when using the TestStep > ExpectError field.
Example error: https://github.com/hashicorp/terraform-provider-tls/actions/runs/4296411115/jobs/7490487773#step:5:202
=== RUN TestResourceSelfSignedCert_InvalidConfigs
resource_self_signed_cert_test.go:478: Step 1/5, expected an error with pattern, no match on: Error running pre-apply refresh: exit status 1