config: test that null characters show up as errors in parse

This commit is contained in:
Mitchell Hashimoto 2016-11-21 18:11:11 -08:00
parent 43869c564d
commit 9cc52d83de
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
2 changed files with 9 additions and 0 deletions

View File

@ -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.