From fb3a67a6d75f23c4d51e51ae31a0833f8f6c33a3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 Feb 2015 18:33:45 -0800 Subject: [PATCH] terraform: more passing plan tests --- terraform/context_test.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/terraform/context_test.go b/terraform/context_test.go index 3abf65bb26..c76b61e56b 100644 --- a/terraform/context_test.go +++ b/terraform/context_test.go @@ -1,6 +1,7 @@ package terraform import ( + "bytes" "fmt" "reflect" "sort" @@ -347,13 +348,12 @@ func TestContext2Plan_moduleProviderDefaults(t *testing.T) { } } -/* -func TestContextPlan_moduleProviderDefaultsVar(t *testing.T) { +func TestContext2Plan_moduleProviderDefaultsVar(t *testing.T) { var l sync.Mutex var calls []string m := testModule(t, "plan-module-provider-defaults-var") - ctx := testContext(t, &ContextOpts{ + ctx := testContext2(t, &ContextOpts{ Module: m, Providers: map[string]ResourceProviderFactory{ "aws": func() (ResourceProvider, error) { @@ -396,11 +396,12 @@ func TestContextPlan_moduleProviderDefaultsVar(t *testing.T) { } } -func TestContextPlan_moduleVar(t *testing.T) { +/* +func TestContext2Plan_moduleVar(t *testing.T) { m := testModule(t, "plan-module-var") p := testProvider("aws") p.DiffFn = testDiffFn - ctx := testContext(t, &ContextOpts{ + ctx := testContext2(t, &ContextOpts{ Module: m, Providers: map[string]ResourceProviderFactory{ "aws": testProviderFuncFixed(p), @@ -419,6 +420,7 @@ func TestContextPlan_moduleVar(t *testing.T) { } } +/* func TestContextPlan_moduleVarComputed(t *testing.T) { m := testModule(t, "plan-module-var-computed") p := testProvider("aws")