@@ -63,18 +63,22 @@ test_instance.foo:
6363func TestLocal_refreshInput (t * testing.T ) {
6464 b := TestLocal (t )
6565
66- schema := & terraform.ProviderSchema {
67- Provider : & configschema.Block {
68- Attributes : map [string ]* configschema.Attribute {
69- "value" : {Type : cty .String , Optional : true },
66+ schema := providers.ProviderSchema {
67+ Provider : providers.Schema {
68+ Block : & configschema.Block {
69+ Attributes : map [string ]* configschema.Attribute {
70+ "value" : {Type : cty .String , Optional : true },
71+ },
7072 },
7173 },
72- ResourceTypes : map [string ]* configschema. Block {
74+ ResourceTypes : map [string ]providers. Schema {
7375 "test_instance" : {
74- Attributes : map [string ]* configschema.Attribute {
75- "id" : {Type : cty .String , Computed : true },
76- "foo" : {Type : cty .String , Optional : true },
77- "ami" : {Type : cty .String , Optional : true },
76+ Block : & configschema.Block {
77+ Attributes : map [string ]* configschema.Attribute {
78+ "id" : {Type : cty .String , Computed : true },
79+ "foo" : {Type : cty .String , Optional : true },
80+ "ami" : {Type : cty .String , Optional : true },
81+ },
7882 },
7983 },
8084 },
@@ -154,17 +158,21 @@ test_instance.foo:
154158func TestLocal_refreshValidateProviderConfigured (t * testing.T ) {
155159 b := TestLocal (t )
156160
157- schema := & terraform.ProviderSchema {
158- Provider : & configschema.Block {
159- Attributes : map [string ]* configschema.Attribute {
160- "value" : {Type : cty .String , Optional : true },
161+ schema := providers.ProviderSchema {
162+ Provider : providers.Schema {
163+ Block : & configschema.Block {
164+ Attributes : map [string ]* configschema.Attribute {
165+ "value" : {Type : cty .String , Optional : true },
166+ },
161167 },
162168 },
163- ResourceTypes : map [string ]* configschema. Block {
169+ ResourceTypes : map [string ]providers. Schema {
164170 "test_instance" : {
165- Attributes : map [string ]* configschema.Attribute {
166- "id" : {Type : cty .String , Computed : true },
167- "ami" : {Type : cty .String , Optional : true },
171+ Block : & configschema.Block {
172+ Attributes : map [string ]* configschema.Attribute {
173+ "id" : {Type : cty .String , Computed : true },
174+ "ami" : {Type : cty .String , Optional : true },
175+ },
168176 },
169177 },
170178 },
@@ -297,13 +305,15 @@ func testRefreshState() *states.State {
297305// refreshFixtureSchema returns a schema suitable for processing the
298306// configuration in testdata/refresh . This schema should be
299307// assigned to a mock provider named "test".
300- func refreshFixtureSchema () * terraform .ProviderSchema {
301- return & terraform .ProviderSchema {
302- ResourceTypes : map [string ]* configschema. Block {
308+ func refreshFixtureSchema () providers .ProviderSchema {
309+ return providers .ProviderSchema {
310+ ResourceTypes : map [string ]providers. Schema {
303311 "test_instance" : {
304- Attributes : map [string ]* configschema.Attribute {
305- "ami" : {Type : cty .String , Optional : true },
306- "id" : {Type : cty .String , Computed : true },
312+ Block : & configschema.Block {
313+ Attributes : map [string ]* configschema.Attribute {
314+ "ami" : {Type : cty .String , Optional : true },
315+ "id" : {Type : cty .String , Computed : true },
316+ },
307317 },
308318 },
309319 },
0 commit comments