github.com/opentofu/opentofu@v1.7.1/internal/command/testdata/test/undefined_variables/main.tftest.hcl (about) 1 2 variables { 3 # config_free isn't defined in the config, but we'll 4 # still let users refer to it within the assertions. 5 config_free = "Hello, world!" 6 } 7 8 run "applies_defaults" { 9 assert { 10 condition = var.input == var.config_free 11 error_message = "should have applied default value" 12 } 13 }