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:
parent
edf3cd7159
commit
f695e8b330
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue