terraform: more passing tests

This commit is contained in:
Mitchell Hashimoto 2015-02-11 17:02:55 -08:00
parent 23d097ee53
commit 10dee0dce8
1 changed files with 9 additions and 7 deletions

View File

@ -132,12 +132,11 @@ func TestContext2Plan_moduleInput(t *testing.T) {
}
}
/*
func TestContextPlan_moduleInputComputed(t *testing.T) {
func TestContext2Plan_moduleInputComputed(t *testing.T) {
m := testModule(t, "plan-module-input-computed")
p := testProvider("aws")
p.DiffFn = testDiffFn
ctx := testContext(t, &ContextOpts{
ctx := testContext2(t, &ContextOpts{
Module: m,
Providers: map[string]ResourceProviderFactory{
"aws": testProviderFuncFixed(p),
@ -156,11 +155,11 @@ func TestContextPlan_moduleInputComputed(t *testing.T) {
}
}
func TestContextPlan_moduleInputFromVar(t *testing.T) {
func TestContext2Plan_moduleInputFromVar(t *testing.T) {
m := testModule(t, "plan-module-input-var")
p := testProvider("aws")
p.DiffFn = testDiffFn
ctx := testContext(t, &ContextOpts{
ctx := testContext2(t, &ContextOpts{
Module: m,
Providers: map[string]ResourceProviderFactory{
"aws": testProviderFuncFixed(p),
@ -181,11 +180,13 @@ func TestContextPlan_moduleInputFromVar(t *testing.T) {
t.Fatalf("bad:\n%s", actual)
}
}
func TestContextPlan_moduleMultiVar(t *testing.T) {
/*
func TestContext2Plan_moduleMultiVar(t *testing.T) {
m := testModule(t, "plan-module-multi-var")
p := testProvider("aws")
p.DiffFn = testDiffFn
ctx := testContext(t, &ContextOpts{
ctx := testContext2(t, &ContextOpts{
Module: m,
Providers: map[string]ResourceProviderFactory{
"aws": testProviderFuncFixed(p),
@ -203,6 +204,7 @@ func TestContextPlan_moduleMultiVar(t *testing.T) {
t.Fatalf("bad:\n%s", actual)
}
}
func TestContextPlan_moduleOrphans(t *testing.T) {
m := testModule(t, "plan-modules-remove")
p := testProvider("aws")