-
Notifications
You must be signed in to change notification settings - Fork 113
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
tfexec: Add (Terraform).SetLog() method #291
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks good to me but can you also add a test which confirms the right ENV vars are being set after SetLog
is called?
https://github.com/hashicorp/terraform-exec/blob/main/tfexec/terraform_test.go
Thanks!
10402aa
to
47e6c29
Compare
Rebased and pushed up environment variable testing for both |
…updates for darwin/arm64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
* tfexec: Add (Terraform).SetLog() method Reference: hashicorp#290 * tfexec: Add testing for SetLog * tfexec: Add SetLogPath testing * tfexec: Ensure SetLog version compatibility is 0.15 minimum, testing updates for darwin/arm64
…erraform during acceptance testing on versions 0.15 and later Reference: hashicorp/terraform-exec#291 Reference: #992 This allows the acceptance testing framework to appropriately set the `TF_LOG` environment variable via `terraform-exec`, if Terraform is version 0.15 or later. Otherwise, defaults to `TRACE` similar to before when `TF_ACC_LOG_PATH` or `TF_LOG_PATH_MASK` environment variables are set.
…erraform during acceptance testing on versions 0.15 and later Reference: hashicorp/terraform-exec#291 Reference: #992 This allows the acceptance testing framework to appropriately set the `TF_LOG` environment variable via `terraform-exec`, if Terraform is version 0.15 or later. Otherwise, defaults to `TRACE` similar to before when `TF_ACC_LOG_PATH` or `TF_LOG_PATH_MASK` environment variables are set.
Closes #290