Files
opentf/internal/command/testdata/test/function_call_in_variables/main.tftest.hcl

16 lines
367 B
HCL

variables {
input = upper("test_value")
joined = join("-", ["test", "values"])
}
run "validate_function_calls" {
assert {
condition = var.input == "TEST_VALUE"
error_message = "upper() function did not work in variables"
}
assert {
condition = var.joined == "test-values"
error_message = "join() function did not work in variables"
}
}