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 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")
|
||||
|
|
|
@ -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},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue