-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Failure with parse error
TestTerraform 2026-01-27T14:33:50Z logger.go:67: Note: You didn't use the -out option to save this plan, so Terraform can't
TestTerraform 2026-01-27T14:33:50Z logger.go:67: guarantee to take exactly these actions if you run "terraform apply" now.
count.go:36:
Error Trace: /root/go/pkg/mod/github.com/gruntwork-io/terratest@v0.55.0/modules/terraform/count.go:36
......[redacted].... terra_test.go:47
Error: Received unexpected error:
Can't parse Terraform output
Test: TestTerraform
To Reproduce
Steps to reproduce the behavior, code snippets and examples which can be used to reproduce the issue.
tfOptionsRecreate := terraformOptions
tfOptionsRecreate.Vars["user_data_replace_on_change"] = true
tfOptionsRecreate.Vars["user_data"] = "echo 'Hello, World!' > /tmp/hello.txt
stdout := terraform.Plan(t, tfOptionsRecreate)
changed := terraform.GetResourceCount(t, stdout)I can verify that this works with 1.13.1 and 1.13.5 but not with 1.14.0 ( and not with 1.14.1).
Expected behavior
I'd expect terratest to be able to parse the output.
Nice to have
- Terminal output - see above
Versions
- Terratest version: github.com/gruntwork-io/terratest v0.55.0
- Environment details (Ubuntu 20.04, Windows 10, etc.): ubuntu
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working