config: test that null characters show up as errors in parse
This commit is contained in:
parent
43869c564d
commit
9cc52d83de
|
@ -49,6 +49,15 @@ func TestLoadFile_badType(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestLoadFile_gitCrypt(t *testing.T) {
|
||||
_, err := LoadFile(filepath.Join(fixtureDir, "git-crypt.tf"))
|
||||
if err == nil {
|
||||
t.Fatal("should have error")
|
||||
}
|
||||
|
||||
t.Logf("err: %s", err)
|
||||
}
|
||||
|
||||
func TestLoadFile_lifecycleKeyCheck(t *testing.T) {
|
||||
_, err := LoadFile(filepath.Join(fixtureDir, "lifecycle_cbd_typo.tf"))
|
||||
if err == nil {
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue