helper/resource: refresh during test
This commit is contained in:
parent
83f73e63aa
commit
8229758806
|
@ -190,6 +190,13 @@ func testStep(
|
|||
ws, es)
|
||||
}
|
||||
|
||||
// Refresh!
|
||||
state, err = ctx.Refresh()
|
||||
if err != nil {
|
||||
return state, fmt.Errorf(
|
||||
"Error refreshing: %s", err)
|
||||
}
|
||||
|
||||
// Plan!
|
||||
if _, err := ctx.Plan(&terraform.PlanOpts{Destroy: step.Destroy}); err != nil {
|
||||
return state, fmt.Errorf(
|
||||
|
|
Loading…
Reference in New Issue