mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 10:31:22 -04:00
33 lines
462 B
HCL
33 lines
462 B
HCL
run "setup" {
|
|
variables {
|
|
password = "password"
|
|
}
|
|
|
|
module {
|
|
source = "./setup"
|
|
}
|
|
}
|
|
|
|
run "test" {
|
|
variables {
|
|
password = run.setup.password
|
|
}
|
|
}
|
|
|
|
run "test_failed" {
|
|
variables {
|
|
password = run.setup.password
|
|
complex = {
|
|
foo = "bar"
|
|
baz = run.test.password
|
|
}
|
|
}
|
|
|
|
assert {
|
|
condition = var.complex == {
|
|
foo = "bar"
|
|
baz = test_resource.resource.id
|
|
}
|
|
error_message = "expected to fail"
|
|
}
|
|
}
|