mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-31 03:00:18 -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.
26 lines
728 B
JSON
26 lines
728 B
JSON
{
|
|
"valid": false,
|
|
"error_count": 1,
|
|
"warning_count": 0,
|
|
"diagnostics": [
|
|
{
|
|
"severity": "error",
|
|
"summary": "Duplicate provider configuration",
|
|
"detail": "A default (non-aliased) provider configuration for \"aws\" was already given at testdata/validate-invalid/multiple_providers/main.tf:1,1-15. If multiple configurations are required, set the \"alias\" argument for alternative configurations.",
|
|
"range": {
|
|
"filename": "testdata/validate-invalid/multiple_providers/main.tf",
|
|
"start": {
|
|
"line": 7,
|
|
"column": 1,
|
|
"byte": 85
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 15,
|
|
"byte": 99
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|