provider/test: allow test_resource to be imported

When working on the core import code, it's useful to have a zero-cost
local resource to work with for quick iteration.
This commit is contained in:
Martin Atkins 2017-05-16 18:05:01 -07:00
parent edf3cd7159
commit f695e8b330
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ func testResource() *schema.Resource {
Read: testResourceRead, Read: testResourceRead,
Update: testResourceUpdate, Update: testResourceUpdate,
Delete: testResourceDelete, Delete: testResourceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"required": { "required": {
Type: schema.TypeString, Type: schema.TypeString,