From f695e8b330f8d88b291477df916ad5e8c11c00a1 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 16 May 2017 18:05:01 -0700 Subject: [PATCH] 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. --- builtin/providers/test/resource.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builtin/providers/test/resource.go b/builtin/providers/test/resource.go index 64571009b..c0e742acd 100644 --- a/builtin/providers/test/resource.go +++ b/builtin/providers/test/resource.go @@ -12,6 +12,11 @@ func testResource() *schema.Resource { Read: testResourceRead, Update: testResourceUpdate, Delete: testResourceDelete, + + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Schema: map[string]*schema.Schema{ "required": { Type: schema.TypeString,