mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
more cases
This commit is contained in:
@@ -132,10 +132,6 @@ func TestTest(t *testing.T) {
|
||||
expected: "1 passed, 0 failed.",
|
||||
code: 0,
|
||||
},
|
||||
"broken_no_valid_hcl": {
|
||||
expected: "Unsupported block type",
|
||||
code: 1,
|
||||
},
|
||||
}
|
||||
for name, tc := range tcs {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
@@ -199,6 +195,14 @@ func TestTest_Broken_HCL_Files(t *testing.T) {
|
||||
expected: "Blocks of type \"data\" are not expected here.",
|
||||
code: 1,
|
||||
},
|
||||
"broken_wrong_block_output": {
|
||||
expected: "Blocks of type \"output\" are not expected here.",
|
||||
code: 1,
|
||||
},
|
||||
"broken_wrong_block_check": {
|
||||
expected: "Blocks of type \"data\" are not expected here.",
|
||||
code: 1,
|
||||
},
|
||||
}
|
||||
for name, tc := range tcs {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user