mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 10:31:22 -04:00
* introduce 'run' keyword for referencing outputs from earlier run blocks * fix code consistency
37 lines
448 B
HCL
37 lines
448 B
HCL
|
|
variables {
|
|
foo = "foo"
|
|
}
|
|
|
|
|
|
run "setup" {
|
|
module {
|
|
source = "./setup"
|
|
}
|
|
|
|
variables {
|
|
input = "foo"
|
|
}
|
|
|
|
assert {
|
|
condition = output.value == var.foo
|
|
error_message = "bad"
|
|
}
|
|
}
|
|
|
|
run "test" {
|
|
|
|
variables {
|
|
input = run.setup.value
|
|
}
|
|
|
|
assert {
|
|
condition = output.value == var.foo
|
|
error_message = "double bad"
|
|
}
|
|
|
|
assert {
|
|
condition = run.setup.value == var.foo
|
|
error_message = "triple bad"
|
|
}
|
|
}
|