terraform: fix more plan tests
This commit is contained in:
parent
a2d278b284
commit
8365d39d26
|
@ -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")
|
||||||
|
|
|
@ -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},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue