mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-03 20:30:28 -06:00
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 {
|
||||
|
BIN
config/test-fixtures/git-crypt.tf
Normal file
BIN
config/test-fixtures/git-crypt.tf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user