terraform: fix more plan tests

This commit is contained in:
Mitchell Hashimoto 2015-02-11 22:51:48 -08:00
parent a2d278b284
commit 8365d39d26
2 changed files with 6 additions and 5 deletions

View File

@ -550,12 +550,11 @@ func TestContext2Plan_count(t *testing.T) {
} }
} }
/* func TestContext2Plan_countComputed(t *testing.T) {
func TestContextPlan_countComputed(t *testing.T) {
m := testModule(t, "plan-count-computed") m := testModule(t, "plan-count-computed")
p := testProvider("aws") p := testProvider("aws")
p.DiffFn = testDiffFn p.DiffFn = testDiffFn
ctx := testContext(t, &ContextOpts{ ctx := testContext2(t, &ContextOpts{
Module: m, Module: m,
Providers: map[string]ResourceProviderFactory{ Providers: map[string]ResourceProviderFactory{
"aws": testProviderFuncFixed(p), "aws": testProviderFuncFixed(p),
@ -568,6 +567,7 @@ func TestContextPlan_countComputed(t *testing.T) {
} }
} }
/*
func TestContextPlan_countIndex(t *testing.T) { func TestContextPlan_countIndex(t *testing.T) {
m := testModule(t, "plan-count-index") m := testModule(t, "plan-count-index")
p := testProvider("aws") p := testProvider("aws")

View File

@ -217,8 +217,9 @@ func (n *GraphNodeConfigResource) DynamicExpand(ctx EvalContext) (*Graph, error)
// GraphNodeEvalable impl. // GraphNodeEvalable impl.
func (n *GraphNodeConfigResource) EvalTree() EvalNode { func (n *GraphNodeConfigResource) EvalTree() EvalNode {
return &EvalValidateCount{ return &EvalOpFilter{
Resource: n.Resource, Ops: []walkOperation{walkValidate},
Node: &EvalValidateCount{Resource: n.Resource},
} }
} }