terraform: more passing tests
This commit is contained in:
parent
e2abf17c9c
commit
c3df003624
|
@ -3658,8 +3658,7 @@ func TestContext2Apply_Provisioner_Diff(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
func TestContext2Apply_outputDiffVars(t *testing.T) {
|
||||||
func TestContextApply_outputDiffVars(t *testing.T) {
|
|
||||||
m := testModule(t, "apply-good")
|
m := testModule(t, "apply-good")
|
||||||
p := testProvider("aws")
|
p := testProvider("aws")
|
||||||
s := &State{
|
s := &State{
|
||||||
|
@ -3677,7 +3676,7 @@ func TestContextApply_outputDiffVars(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),
|
||||||
|
@ -3718,7 +3717,7 @@ func TestContextApply_outputDiffVars(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestContextApply_Provisioner_ConnInfo(t *testing.T) {
|
func TestContext2Apply_Provisioner_ConnInfo(t *testing.T) {
|
||||||
m := testModule(t, "apply-provisioner-conninfo")
|
m := testModule(t, "apply-provisioner-conninfo")
|
||||||
p := testProvider("aws")
|
p := testProvider("aws")
|
||||||
pr := testProvisioner()
|
pr := testProvisioner()
|
||||||
|
@ -3759,7 +3758,7 @@ func TestContextApply_Provisioner_ConnInfo(t *testing.T) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
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),
|
||||||
|
@ -3794,13 +3793,14 @@ func TestContextApply_Provisioner_ConnInfo(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestContextApply_destroy(t *testing.T) {
|
/*
|
||||||
|
func TestContext2Apply_destroy(t *testing.T) {
|
||||||
m := testModule(t, "apply-destroy")
|
m := testModule(t, "apply-destroy")
|
||||||
h := new(HookRecordApplyOrder)
|
h := new(HookRecordApplyOrder)
|
||||||
p := testProvider("aws")
|
p := testProvider("aws")
|
||||||
p.ApplyFn = testApplyFn
|
p.ApplyFn = testApplyFn
|
||||||
p.DiffFn = testDiffFn
|
p.DiffFn = testDiffFn
|
||||||
ctx := testContext(t, &ContextOpts{
|
ctx := testContext2(t, &ContextOpts{
|
||||||
Module: m,
|
Module: m,
|
||||||
Hooks: []Hook{h},
|
Hooks: []Hook{h},
|
||||||
Providers: map[string]ResourceProviderFactory{
|
Providers: map[string]ResourceProviderFactory{
|
||||||
|
@ -3844,6 +3844,7 @@ func TestContextApply_destroy(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func TestContextApply_destroyOutputs(t *testing.T) {
|
func TestContextApply_destroyOutputs(t *testing.T) {
|
||||||
m := testModule(t, "apply-destroy-outputs")
|
m := testModule(t, "apply-destroy-outputs")
|
||||||
h := new(HookRecordApplyOrder)
|
h := new(HookRecordApplyOrder)
|
||||||
|
|
Loading…
Reference in New Issue