File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed
helper/resource/importstate Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,18 @@ func examplecloudResource() testprovider.Resource {
7575 },
7676 ),
7777 },
78+ IdentitySchemaResponse : & resource.IdentitySchemaResponse {
79+ Schema : & tfprotov6.ResourceIdentitySchema {
80+ Version : 1 ,
81+ IdentityAttributes : []* tfprotov6.ResourceIdentitySchemaAttribute {
82+ {
83+ Name : "id" ,
84+ Type : tftypes .String ,
85+ RequiredForImport : true ,
86+ },
87+ },
88+ },
89+ },
7890 ImportStateResponse : & resource.ImportStateResponse {
7991 State : tftypes .NewValue (
8092 tftypes.Object {
Original file line number Diff line number Diff line change 77 "testing"
88
99 "github.com/hashicorp/terraform-plugin-go/tfprotov6"
10- "github.com/hashicorp/terraform-plugin-go/tftypes"
1110
1211 "github.com/hashicorp/terraform-plugin-testing/internal/testing/testprovider"
1312 "github.com/hashicorp/terraform-plugin-testing/internal/testing/testsdk/providerserver"
@@ -28,18 +27,6 @@ func Test_ResourceIdentity(t *testing.T) {
2827 Resources : map [string ]testprovider.Resource {
2928 "examplecloud_container" : examplecloudResource (),
3029 },
31- ResourceIdentitySchemas : map [string ]* tfprotov6.ResourceIdentitySchema {
32- "examplecloud_container" : {
33- Version : 1 ,
34- IdentityAttributes : []* tfprotov6.ResourceIdentitySchemaAttribute {
35- {
36- Name : "id" ,
37- Type : tftypes .String ,
38- RequiredForImport : true ,
39- },
40- },
41- },
42- },
4330 }),
4431 },
4532 Steps : []r.TestStep {
You can’t perform that action at this time.
0 commit comments