mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-18 04:01:08 -05:00
Also uncomment and fix some tests which had been skipped for a couple of years. Those validate cases work now! Note that these test cases and the JSON output are not especially minimized, making them snapshot/golden tests. The output looks correct at time of writing, and we don't expect to change validate significantly any time soon, but if we do there will be some churn here.
44 lines
987 B
JSON
44 lines
987 B
JSON
{
|
|
"valid": false,
|
|
"error_count": 2,
|
|
"warning_count": 0,
|
|
"diagnostics": [
|
|
{
|
|
"severity": "error",
|
|
"summary": "Missing required argument",
|
|
"detail": "The argument \"value\" is required, but no definition was found.",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/outputs/main.tf",
|
|
"start": {
|
|
"line": 1,
|
|
"column": 18,
|
|
"byte": 17
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 18,
|
|
"byte": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"severity": "error",
|
|
"summary": "Unsupported argument",
|
|
"detail": "An argument named \"values\" is not expected here. Did you mean \"value\"?",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/outputs/main.tf",
|
|
"start": {
|
|
"line": 2,
|
|
"column": 3,
|
|
"byte": 21
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 9,
|
|
"byte": 27
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|