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) {
|
||||
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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -233,7 +233,7 @@ aws_instance.foo.1:
|
|||
`
|
||||
|
||||
const testTerraformApplyCountDecToOneStr = `
|
||||
aws_instance.foo.0:
|
||||
aws_instance.foo:
|
||||
ID = bar
|
||||
foo = foo
|
||||
type = aws_instance
|
||||
|
|
Loading…
Reference in New Issue