github.com/opentofu/opentofu@v1.7.1/internal/command/testdata/test/pass_with_variables/main.tftest.hcl (about) 1 variables { 2 input = "bar" 3 } 4 5 run "validate_test_resource" { 6 assert { 7 condition = test_resource.foo.value == "bar" 8 error_message = "invalid value" 9 } 10 } 11 12 run "validate_test_resource" { 13 variables { 14 input = "zap" 15 } 16 17 assert { 18 condition = test_resource.foo.value == "zap" 19 error_message = "invalid value" 20 } 21 }