mirror of
https://github.com/hashicorp/terraform.git
synced 2026-04-15 22:10:37 -04:00
* terraform test: Fix crash when referencing variables within the file level variable block * also allow functions within variables blocks * add tests
10 lines
187 B
HCL
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"
|
|
}
|
|
}
|