terraform: more apply tests
This commit is contained in:
parent
691db58478
commit
a3e4b3e966
|
@ -1219,6 +1219,7 @@ func TestContextApply_countDecrease(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func TestContextApply_countDecreaseToOne(t *testing.T) {
|
func TestContextApply_countDecreaseToOne(t *testing.T) {
|
||||||
m := testModule(t, "apply-count-dec-one")
|
m := testModule(t, "apply-count-dec-one")
|
||||||
p := testProvider("aws")
|
p := testProvider("aws")
|
||||||
|
@ -1277,6 +1278,7 @@ func TestContextApply_countDecreaseToOne(t *testing.T) {
|
||||||
t.Fatalf("bad: \n%s", actual)
|
t.Fatalf("bad: \n%s", actual)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
func TestContextApply_countTainted(t *testing.T) {
|
func TestContextApply_countTainted(t *testing.T) {
|
||||||
m := testModule(t, "apply-count-tainted")
|
m := testModule(t, "apply-count-tainted")
|
||||||
|
|
|
@ -3015,8 +3015,7 @@ func TestContext2Apply_countDecrease(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
func TestContext2Apply_countDecreaseToOne(t *testing.T) {
|
||||||
func TestContextApply_countDecreaseToOne(t *testing.T) {
|
|
||||||
m := testModule(t, "apply-count-dec-one")
|
m := testModule(t, "apply-count-dec-one")
|
||||||
p := testProvider("aws")
|
p := testProvider("aws")
|
||||||
p.DiffFn = testDiffFn
|
p.DiffFn = testDiffFn
|
||||||
|
@ -3051,7 +3050,7 @@ func TestContextApply_countDecreaseToOne(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
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),
|
||||||
|
@ -3075,6 +3074,7 @@ func TestContextApply_countDecreaseToOne(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func TestContextApply_countTainted(t *testing.T) {
|
func TestContextApply_countTainted(t *testing.T) {
|
||||||
m := testModule(t, "apply-count-tainted")
|
m := testModule(t, "apply-count-tainted")
|
||||||
p := testProvider("aws")
|
p := testProvider("aws")
|
||||||
|
|
|
@ -233,7 +233,7 @@ aws_instance.foo.1:
|
||||||
`
|
`
|
||||||
|
|
||||||
const testTerraformApplyCountDecToOneStr = `
|
const testTerraformApplyCountDecToOneStr = `
|
||||||
aws_instance.foo.0:
|
aws_instance.foo:
|
||||||
ID = bar
|
ID = bar
|
||||||
foo = foo
|
foo = foo
|
||||||
type = aws_instance
|
type = aws_instance
|
||||||
|
|
Loading…
Reference in New Issue