terraform: more passing plan tests
This commit is contained in:
parent
d9118007ea
commit
fb3a67a6d7
|
@ -1,6 +1,7 @@
|
||||||
package terraform
|
package terraform
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
"sort"
|
||||||
|
@ -347,13 +348,12 @@ func TestContext2Plan_moduleProviderDefaults(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
func TestContext2Plan_moduleProviderDefaultsVar(t *testing.T) {
|
||||||
func TestContextPlan_moduleProviderDefaultsVar(t *testing.T) {
|
|
||||||
var l sync.Mutex
|
var l sync.Mutex
|
||||||
var calls []string
|
var calls []string
|
||||||
|
|
||||||
m := testModule(t, "plan-module-provider-defaults-var")
|
m := testModule(t, "plan-module-provider-defaults-var")
|
||||||
ctx := testContext(t, &ContextOpts{
|
ctx := testContext2(t, &ContextOpts{
|
||||||
Module: m,
|
Module: m,
|
||||||
Providers: map[string]ResourceProviderFactory{
|
Providers: map[string]ResourceProviderFactory{
|
||||||
"aws": func() (ResourceProvider, error) {
|
"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")
|
m := testModule(t, "plan-module-var")
|
||||||
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),
|
||||||
|
@ -419,6 +420,7 @@ func TestContextPlan_moduleVar(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func TestContextPlan_moduleVarComputed(t *testing.T) {
|
func TestContextPlan_moduleVarComputed(t *testing.T) {
|
||||||
m := testModule(t, "plan-module-var-computed")
|
m := testModule(t, "plan-module-var-computed")
|
||||||
p := testProvider("aws")
|
p := testProvider("aws")
|
||||||
|
|
Loading…
Reference in New Issue