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

View File

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