Skip to content

Commit b08d5af

Browse files
committed
test: Update mockPluggableStateStorageProvider helper to include a resource schema
1 parent e0c88fb commit b08d5af

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

internal/command/init_test.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4371,8 +4371,17 @@ func mockPluggableStateStorageProvider(t *testing.T) *testing_provider.MockProvi
43714371
},
43724372
},
43734373
},
4374-
DataSources: map[string]providers.Schema{},
4375-
ResourceTypes: map[string]providers.Schema{},
4374+
DataSources: map[string]providers.Schema{},
4375+
ResourceTypes: map[string]providers.Schema{
4376+
"test_instance": {
4377+
Body: &configschema.Block{
4378+
Attributes: map[string]*configschema.Attribute{
4379+
"input": {Type: cty.String, Optional: true},
4380+
"id": {Type: cty.String, Computed: true},
4381+
},
4382+
},
4383+
},
4384+
},
43764385
ListResourceTypes: map[string]providers.Schema{},
43774386
StateStores: map[string]providers.Schema{
43784387
pssName: {

0 commit comments

Comments
 (0)