mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Run block variable references (#1129)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
0
internal/command/testdata/test/variables_reference/main.tf
vendored
Normal file
0
internal/command/testdata/test/variables_reference/main.tf
vendored
Normal file
15
internal/command/testdata/test/variables_reference/main.tftest.hcl
vendored
Normal file
15
internal/command/testdata/test/variables_reference/main.tftest.hcl
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
variables {
|
||||
content = "some value"
|
||||
}
|
||||
|
||||
run "setup" {
|
||||
module {
|
||||
source = "./setup"
|
||||
}
|
||||
}
|
||||
|
||||
run "test" {
|
||||
variables {
|
||||
file_name = run.setup.file_name
|
||||
}
|
||||
}
|
||||
7
internal/command/testdata/test/variables_reference/setup/main.tf
vendored
Normal file
7
internal/command/testdata/test/variables_reference/setup/main.tf
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
variable "content" {
|
||||
type = string
|
||||
}
|
||||
|
||||
output "file_name" {
|
||||
value = "output_value"
|
||||
}
|
||||
Reference in New Issue
Block a user