-
Notifications
You must be signed in to change notification settings - Fork 14
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
Modify detection of provider blocks in configuration #264
Comments
I wonder if we should submit something upstream for |
There's actually no usage of |
I have no issues with implementing the unquoted and whitespace missing after label cases (e.g. |
drive-by - 🚗 - Looking at the
I'd imagine based on how it's described that they'd be unlikely to also check formatting during that command. Maybe we could add a test warning if we detect that |
At the very least, it's probably worth documenting (if we haven't already) that we dynamically add terraform configuration to their test configs if needed. |
Ooops. Apologies, I completely misunderstood what you were getting at here. I've opened an issue for Consider having terraform validate raise an error if provider block defined without whitespace. |
Have added an issue for Consider running terraform validate against supplied configuration to track this. |
Agreed. I've added an issue to track this Consider Adding Documentation Describing Dynamic Modification of Terraform Configuration. |
…ration (#265) * Modify regex to detect other legitimate forms of provider block declaration (#264) * Add change log entry (#264) * Update internal/teststep/config.go Co-authored-by: Brian Flad <[email protected]> * Modify regex to detect other legitimate forms of terraform block declaration (#264) --------- Co-authored-by: Brian Flad <[email protected]>
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
N/A
Terraform Configuration Files
The following are all allowed
provider
block declarations from the perspective ofterraform validate
.Expected Behavior
Using the
provider
block configurations supplied should result in successfully executing tests.Actual Behavior
The following error is raised:
Steps to Reproduce
Run an acceptance test with a
provider
block configuration that uses the quoting and /or spacing described inTerraform Configuration Files
.The text was updated successfully, but these errors were encountered: