You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/command/testdata/test/with-default-variables/main.tftest.hcl

32 lines
547 B

variable "input_one" {
type = string
default = "hello"
}
variable "input_two" {
type = string
default = "world" // we will override this an external value
}
variables {
value = "${var.input_two}_more"
}
run "test" {
assert {
condition = test_resource.resource.value == "hello - universe"
error_message = "bad concatenation"
}
}
run "nested_ref" {
variables {
input_two = var.value
}
assert {
condition = test_resource.resource.value == "hello - universe_more"
error_message = "bad concatenation"
}
}