terraform: more apply tests

This commit is contained in:
Mitchell Hashimoto 2015-02-12 20:06:42 -08:00
parent 691db58478
commit a3e4b3e966
3 changed files with 6 additions and 4 deletions

View File

@ -1219,6 +1219,7 @@ func TestContextApply_countDecrease(t *testing.T) {
}
}
/*
func TestContextApply_countDecreaseToOne(t *testing.T) {
m := testModule(t, "apply-count-dec-one")
p := testProvider("aws")
@ -1277,6 +1278,7 @@ func TestContextApply_countDecreaseToOne(t *testing.T) {
t.Fatalf("bad: \n%s", actual)
}
}
*/
func TestContextApply_countTainted(t *testing.T) {
m := testModule(t, "apply-count-tainted")

View File

@ -3015,8 +3015,7 @@ func TestContext2Apply_countDecrease(t *testing.T) {
}
}
/*
func TestContextApply_countDecreaseToOne(t *testing.T) {
func TestContext2Apply_countDecreaseToOne(t *testing.T) {
m := testModule(t, "apply-count-dec-one")
p := testProvider("aws")
p.DiffFn = testDiffFn
@ -3051,7 +3050,7 @@ func TestContextApply_countDecreaseToOne(t *testing.T) {
},
},
}
ctx := testContext(t, &ContextOpts{
ctx := testContext2(t, &ContextOpts{
Module: m,
Providers: map[string]ResourceProviderFactory{
"aws": testProviderFuncFixed(p),
@ -3075,6 +3074,7 @@ func TestContextApply_countDecreaseToOne(t *testing.T) {
}
}
/*
func TestContextApply_countTainted(t *testing.T) {
m := testModule(t, "apply-count-tainted")
p := testProvider("aws")

View File

@ -233,7 +233,7 @@ aws_instance.foo.1:
`
const testTerraformApplyCountDecToOneStr = `
aws_instance.foo.0:
aws_instance.foo:
ID = bar
foo = foo
type = aws_instance