terraform/internal/command/testdata/test/nested_unknown_values/main.tftest.hcl
Liam Cervante f8d4664bcd
Add additional validation around unknown and null values in test variables (#33861)
* Add additional validation around unknown values in test variables

* address comments
2023-09-14 09:44:21 +02:00

33 lines
No EOL
460 B
HCL

run "first" {
command = plan
variables {
input = {
one = "one"
two = "two"
}
}
}
run "second" {
command = plan
variables {
input = {
# This should be okay, as run.first.one is unknown but we're not
# referencing it directly.
one = "one"
two = run.first.two
}
}
}
run "third" {
variables {
# This should fail as one of the values in run.second is unknown.
input = run.second
}
}