Skip to content

Commit ff949e2

Browse files
committed
stub the 2 new kinds
1 parent daee136 commit ff949e2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

helper/resource/testing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ type ExternalProvider struct {
457457
type ImportStateKind byte
458458

459459
const (
460-
TerraformImportCommand ImportStateKind = iota
460+
ImportCommandWithId ImportStateKind = iota
461461
ImportBlockWithId
462462
ImportBlockWithResourceIdentity
463463
)

helper/resource/testing_new_import_state.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func testStepNewImportState(ctx context.Context, t testing.T, helper *plugintest
119119
}
120120

121121
switch step.ImportStateKind {
122-
case TerraformImportCommand:
122+
case ImportCommandWithId:
123123
logging.HelperResourceDebug(ctx, "Running Terraform CLI init and import")
124124

125125
if !step.ImportStatePersist {
@@ -137,6 +137,13 @@ func testStepNewImportState(ctx context.Context, t testing.T, helper *plugintest
137137
if err != nil {
138138
return err
139139
}
140+
case ImportBlockWithId:
141+
t.Fatalf("not yet implemented")
142+
case ImportBlockWithResourceIdentity:
143+
t.Fatalf("not yet implemented")
144+
default:
145+
t.Fatalf(`\o/`)
146+
}
140147

141148
var importState *terraform.State
142149
err = runProviderCommand(ctx, t, func() error {

0 commit comments

Comments
 (0)