config: add test for empty file
This commit is contained in:
parent
c9fd910c41
commit
4fdb6d1b52
|
@ -50,6 +50,17 @@ func TestLoadBasic(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestLoadBasic_empty(t *testing.T) {
|
||||||
|
c, err := Load(filepath.Join(fixtureDir, "empty.tf"))
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("err: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
if c == nil {
|
||||||
|
t.Fatal("config should not be nil")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func TestLoadBasic_import(t *testing.T) {
|
func TestLoadBasic_import(t *testing.T) {
|
||||||
// Skip because we disabled importing
|
// Skip because we disabled importing
|
||||||
t.Skip()
|
t.Skip()
|
||||||
|
|
Loading…
Reference in New Issue