terraform: more tests passing

This commit is contained in:
Mitchell Hashimoto 2015-02-13 16:28:31 -08:00
parent c8091aa338
commit bd0c3b12cb
1 changed files with 2 additions and 6 deletions

View File

@ -4467,8 +4467,7 @@ func TestContext2Apply_vars(t *testing.T) {
}
}
/*
func TestContextApply_createBefore_depends(t *testing.T) {
func TestContext2Apply_createBefore_depends(t *testing.T) {
m := testModule(t, "apply-depends-create-before")
h := new(HookRecordApplyOrder)
p := testProvider("aws")
@ -4501,7 +4500,7 @@ func TestContextApply_createBefore_depends(t *testing.T) {
},
},
}
ctx := testContext(t, &ContextOpts{
ctx := testContext2(t, &ContextOpts{
Module: m,
Hooks: []Hook{h},
Providers: map[string]ResourceProviderFactory{
@ -4546,9 +4545,7 @@ func TestContextApply_createBefore_depends(t *testing.T) {
t.Fatalf("destroy must happen after update: %#v", order)
}
}
*/
/*
func TestContext2Apply_singleDestroy(t *testing.T) {
m := testModule(t, "apply-depends-create-before")
h := new(HookRecordApplyOrder)
@ -4635,7 +4632,6 @@ func TestContext2Apply_singleDestroy(t *testing.T) {
t.Fatalf("bad: %d", invokeCount)
}
}
*/
func testContext2(t *testing.T, opts *ContextOpts) *Context2 {
return NewContext2(opts)