terraform/internal/command/testdata/test/functions_available/alternate.tftest.hcl
Liam Cervante 430970c02b
terraform test: Fix crash when file level variables reference variables. (#34531)
* terraform test: Fix crash when referencing variables within the file level variable block

* also allow functions within variables blocks

* add tests
2024-01-22 20:00:22 +01:00

10 lines
187 B
HCL

variables {
input = jsonencode({key:"value"})
}
run "test" {
assert {
condition = jsondecode(test_resource.resource.value).key == "value"
error_message = "wrong value"
}
}