mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 18:33:08 -04:00
* introduce 'run' keyword for referencing outputs from earlier run blocks * fix code consistency
37 lines
464 B
HCL
37 lines
464 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 : "foo" }
|
|
error_message = "triple bad"
|
|
}
|
|
}
|