mirror of https://github.com/hashicorp/terraform
parent
8dc8eac4bf
commit
799ffbb3ac
@ -1 +1,5 @@
|
||||
# Hello
|
||||
|
||||
module "foo" {
|
||||
source = "./foo"
|
||||
}
|
||||
|
||||
@ -0,0 +1,19 @@
|
||||
package module
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestTree(t *testing.T) {
|
||||
tree := NewTree(testConfig(t, "basic"))
|
||||
actual := tree.Modules()
|
||||
|
||||
expected := []*Module{
|
||||
&Module{Name: "foo", Source: "./foo"},
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(actual, expected) {
|
||||
t.Fatalf("bad: %#v", actual)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue