providers/aws: vpc dhcp options

This commit is contained in:
Mitchell Hashimoto 2016-05-12 18:06:07 -07:00
parent da353c3637
commit b75d5bb46d
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,27 @@
package aws
import (
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccAWSDHCPOptions_importBasic(t *testing.T) {
resourceName := "aws_vpc_dhcp_options.foo"
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
resource.TestStep{
Config: testAccDHCPOptionsConfig,
},
resource.TestStep{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}

View File

@ -19,6 +19,9 @@ func resourceAwsVpcDhcpOptions() *schema.Resource {
Read: resourceAwsVpcDhcpOptionsRead,
Update: resourceAwsVpcDhcpOptionsUpdate,
Delete: resourceAwsVpcDhcpOptionsDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
Schema: map[string]*schema.Schema{
"domain_name": &schema.Schema{