55 "log"
66 "reflect"
77 "strings"
8- "testing"
98
109 "github.com/davecgh/go-spew/spew"
1110 tfjson "github.com/hashicorp/terraform-json"
@@ -16,7 +15,7 @@ import (
1615 "github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
1716)
1817
19- func runPostTestDestroy (t * testing. T , c TestCase , wd * tftest.WorkingDir ) error {
18+ func runPostTestDestroy (t TestT , c TestCase , wd * tftest.WorkingDir ) error {
2019 wd .RequireDestroy (t )
2120
2221 if c .CheckDestroy != nil {
@@ -30,7 +29,7 @@ func runPostTestDestroy(t *testing.T, c TestCase, wd *tftest.WorkingDir) error {
3029 return nil
3130}
3231
33- func RunNewTest (t * testing. T , c TestCase , providers map [string ]* schema.Provider ) {
32+ func RunNewTest (t TestT , c TestCase , providers map [string ]* schema.Provider ) {
3433 spewConf := spew .NewDefaultConfig ()
3534 spewConf .SortKeys = true
3635 wd := acctest .TestHelper .RequireNewWorkingDir (t )
@@ -102,7 +101,7 @@ func RunNewTest(t *testing.T, c TestCase, providers map[string]*schema.Provider)
102101 }
103102}
104103
105- func getState (t * testing. T , wd * tftest.WorkingDir ) * terraform.State {
104+ func getState (t TestT , wd * tftest.WorkingDir ) * terraform.State {
106105 jsonState := wd .RequireState (t )
107106 state , err := shimStateFromJson (jsonState )
108107 if err != nil {
@@ -132,7 +131,7 @@ func planIsEmpty(plan *tfjson.Plan) bool {
132131 return true
133132}
134133
135- func testIDRefresh (c TestCase , t * testing. T , wd * tftest.WorkingDir , step TestStep , r * terraform.ResourceState ) error {
134+ func testIDRefresh (c TestCase , t TestT , wd * tftest.WorkingDir , step TestStep , r * terraform.ResourceState ) error {
136135 spewConf := spew .NewDefaultConfig ()
137136 spewConf .SortKeys = true
138137
0 commit comments