From 99eab4fd135fc8b56f9c77c48525a8d82861c9ad Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 Feb 2015 17:51:56 -0800 Subject: [PATCH] terraform: more passing plan tests --- terraform/context_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/terraform/context_test.go b/terraform/context_test.go index da806dfa7..9245eb42e 100644 --- a/terraform/context_test.go +++ b/terraform/context_test.go @@ -3,7 +3,9 @@ package terraform import ( "fmt" "reflect" + "sort" "strings" + "sync" "testing" ) @@ -243,13 +245,12 @@ func TestContext2Plan_moduleOrphans(t *testing.T) { } } -/* -func TestContextPlan_moduleProviderInherit(t *testing.T) { +func TestContext2Plan_moduleProviderInherit(t *testing.T) { var l sync.Mutex var calls []string m := testModule(t, "plan-module-provider-inherit") - ctx := testContext(t, &ContextOpts{ + ctx := testContext2(t, &ContextOpts{ Module: m, Providers: map[string]ResourceProviderFactory{ "aws": func() (ResourceProvider, error) { @@ -290,6 +291,7 @@ func TestContextPlan_moduleProviderInherit(t *testing.T) { } } +/* func TestContextPlan_moduleProviderDefaults(t *testing.T) { var l sync.Mutex var calls []string