opentofu/internal/command/testdata/test/invalid_variable_warning_expected/main.tf
Andy Hayes 7215ee2ed8
Adds warning if tests don't provide valid variable (#2057)
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io>
2024-10-15 09:20:11 +01:00

19 lines
347 B
HCL

variable "variable1" {
type = string
validation {
condition = var.variable1 == "foobar"
error_message = "The variable1 value must be: foobar"
}
}
variable "variable2" {
type = string
validation {
condition = var.variable2 == "barfoo"
error_message = "The variable2 value must be: barfoo"
}
}