diff --git a/config/loader_test.go b/config/loader_test.go index 661be3b58..f7fad33c0 100644 --- a/config/loader_test.go +++ b/config/loader_test.go @@ -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 { diff --git a/config/test-fixtures/git-crypt.tf b/config/test-fixtures/git-crypt.tf new file mode 100644 index 000000000..ecd90886a Binary files /dev/null and b/config/test-fixtures/git-crypt.tf differ